X11: fix window type for non background layers

This commit is contained in:
Kovid Goyal 2025-05-02 08:20:51 +05:30
parent be9624bbdd
commit a2631448e5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

2
glfw/x11_window.c vendored
View file

@ -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;