X11: fix window type for non background layers
This commit is contained in:
parent
be9624bbdd
commit
a2631448e5
1 changed files with 1 additions and 1 deletions
2
glfw/x11_window.c
vendored
2
glfw/x11_window.c
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue