1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-10-01 22:49:09 +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:
Tin Švagelj 2024-02-26 00:25:39 +01:00 committed by Brenden Matthews
parent 62d86f2ded
commit 97b6233d50

View File

@ -576,6 +576,9 @@ bool display_output_wayland::initialize() {
wl_registry_add_listener(wl_globals.registry, &registry_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);