From 0d74066aea317d2d573953b4e6aacfa9eb78614e Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Mon, 30 Mar 2026 17:45:32 -0400 Subject: [PATCH] wmaker: treat _NET_WM_WINDOW_TYPE property as a list This patch is treating the _NET_WM_WINDOW_TYPE property as an array of atoms as defined in X11. Currently, we are only getting the first one, while the client can set multiple window types ordered from most specific to least specific. --- src/wmspec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wmspec.c b/src/wmspec.c index 2621200b..8f4a3ccf 100644 --- a/src/wmspec.c +++ b/src/wmspec.c @@ -1535,7 +1535,7 @@ void wNETWMCheckClientHints(WWindow *wwin, int *layer, int *workspace) XFree(data); } - if (XGetWindowProperty(dpy, wwin->client_win, net_wm_window_type, 0, 1, False, + if (XGetWindowProperty(dpy, wwin->client_win, net_wm_window_type, 0, 1024L, False, XA_ATOM, &type_ret, &fmt_ret, &nitems_ret, &bytes_after_ret, (unsigned char **)&data) == Success && data) {