1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-05 14:53:34 +02:00

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.
This commit is contained in:
David Maciejak
2026-03-30 17:45:32 -04:00
committed by Carlos R. Mafra
parent 26a296db23
commit 0d74066aea

View File

@@ -1535,7 +1535,7 @@ void wNETWMCheckClientHints(WWindow *wwin, int *layer, int *workspace)
XFree(data); 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, XA_ATOM, &type_ret, &fmt_ret, &nitems_ret,
&bytes_after_ret, (unsigned char **)&data) == Success && data) { &bytes_after_ret, (unsigned char **)&data) == Success && data) {