From a2631448e5811233847431963310f475885efef7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 May 2025 08:20:51 +0530 Subject: [PATCH] X11: fix window type for non background layers --- glfw/x11_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/x11_window.c b/glfw/x11_window.c index 58ee33d22..b00c3796a 100644 --- a/glfw/x11_window.c +++ b/glfw/x11_window.c @@ -624,7 +624,7 @@ update_wm_hints(_GLFWwindow *window, const WindowGeometry *wg, const _GLFWwndcon Atom type = 0; if (window->x11.layer_shell.is_active) { const char *name = NULL; -#define S(which) type = _glfw.x11.NET_WM_WINDOW_TYPE_DESKTOP; name = #which +#define S(which) type = _glfw.x11.which; name = #which switch (config.type) { case GLFW_LAYER_SHELL_BACKGROUND: S(NET_WM_WINDOW_TYPE_DESKTOP); break; case GLFW_LAYER_SHELL_PANEL: S(NET_WM_WINDOW_TYPE_DOCK); break;