Reputation: 3986
Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?
Upvotes: 3
Views: 702
Reputation: 6117
yes. there are several ways of doing it:
read the _NET_WM_STATE property and check its content (as described in 'http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2507241'). for code, how to do this see some windowmanagers (fluxbox or pekwm comes to mind)
read the WM_STATE property and check its content (as described in http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.3.1).
Upvotes: 2
Reputation: 25647
XGetWMHints()
seems to be the preferred way of doing it.
There's also the function XGetZoomHints()
, but that seems to have been deprecated.
Upvotes: -1