[PATCH] wmaker: treat _NET_WM_WINDOW_TYPE property as a list

Skip to first unread message

david.m...@gmail.com

unread,
Apr 1, 2026, 8:25:42 PM (5 days ago) Apr 1
to Window Maker Development
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) {
 
--
2.43.0
0001-wmaker-treat-_NET_WM_WINDOW_TYPE-property-as-a-list.patch
Reply all
Reply to author
Forward
0 new messages