From 39d3ef6fe8744221abea7c114110f984eac023a8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 10 Mar 2022 17:59:54 +0530 Subject: [PATCH] Output debug for decoration configure when it happens --- glfw/wl_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index ff611f332..6cbe8dc8a 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -273,6 +273,7 @@ xdgDecorationHandleConfigure(void* data, _GLFWwindow* window = data; window->wl.pending.decoration_mode = mode; window->wl.pending_state |= PENDING_STATE_DECORATION; + debug("XDG decoration configure event received: has_server_side_decorations: %d\n", (mode == ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE)); } static const struct zxdg_toplevel_decoration_v1_listener xdgDecorationListener = { @@ -507,7 +508,6 @@ static void xdgSurfaceHandleConfigure(void* data, if (window->wl.pending_state & PENDING_STATE_DECORATION) { uint32_t mode = window->wl.pending.decoration_mode; bool has_server_side_decorations = (mode == ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE); - debug("XDG decoration configure event received: has_server_side_decorations: %d\n", has_server_side_decorations); window->wl.decorations.serverSide = has_server_side_decorations; window->wl.current.decoration_mode = mode; }