mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-19 11:35:12 +00:00
Add wlr layer shell check
Print a nicer error message if the compositor doesn't support wlr-layer-shell-unstable-v1 spec. Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
This commit is contained in:
parent
62d86f2ded
commit
97b6233d50
@ -576,6 +576,9 @@ bool display_output_wayland::initialize() {
|
||||
wl_registry_add_listener(wl_globals.registry, ®istry_listener, NULL);
|
||||
|
||||
wl_display_roundtrip(global_display);
|
||||
if (wl_globals.layer_shell == nullptr) {
|
||||
CRIT_ERR("Compositor doesn't support wlr-layer-shell-unstable-v1. Can't run conky.");
|
||||
}
|
||||
|
||||
struct wl_surface *surface =
|
||||
wl_compositor_create_surface(wl_globals.compositor);
|
||||
|
Loading…
Reference in New Issue
Block a user