$NetBSD: patch-mwmhints_c,v 1.1 2019/01/26 20:50:50 is Exp $ --- mwmhints.c.orig 2006-05-17 06:50:33.000000000 +0000 +++ mwmhints.c @@ -12,8 +12,29 @@ #include "mwmhints.h" #include "frame.h" - #ifndef CF_NO_WILD_WINDOWS +void get_net_wm_state(Window win, int *flags) +{ + Atom *winstate; + int n; + int i; + + n=do_get_property(wglobal.dpy, win, + wglobal.atom_net_wm_state, XA_ATOM, + 32, (uchar **)&winstate); + + for (i=0;i