From 174b51b1442a0a6bd36229faa99c5be944410819 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 9 Nov 2023 16:37:34 +1100 Subject: [PATCH] [client] wayland: add additional debug output --- client/displayservers/Wayland/wayland.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/displayservers/Wayland/wayland.c b/client/displayservers/Wayland/wayland.c index f5dc91a6..d9bf37c4 100644 --- a/client/displayservers/Wayland/wayland.c +++ b/client/displayservers/Wayland/wayland.c @@ -117,6 +117,7 @@ static bool waylandInit(const LG_DSInitParams params) char compositor[1024]; if (getCompositor(compositor, sizeof(compositor))) { + DEBUG_INFO("Compositor: %s", compositor); for(int i = 0; i < WL_DESKTOP_COUNT; ++i) if (strcmp(WL_Desktops[i]->compositor, compositor) == 0) { @@ -124,7 +125,9 @@ static bool waylandInit(const LG_DSInitParams params) break; } } - DEBUG_INFO("Using %s", wlWm.desktop->name); + else + DEBUG_WARN("Compositor: UNKNOWN"); + DEBUG_INFO("Selected : %s", wlWm.desktop->name); wl_list_init(&wlWm.surfaceOutputs);