tags:

views:

63

answers:

2

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?

A: 

XGetWMHints() seems to be the preferred way of doing it.

There's also the function XGetZoomHints(), but that seems to have been deprecated.

greyfade
That was not quite the thing I needed (if I am right, XGetWMHints() only allows to check window's **initial**, not current parameters). So, after some stressed thinking, I came up with this, should work at least under most circumstances: http://pastebin.com/f356a8010
mindbound
I would suggest trying it and comparing it to its unmapped state. Also try checking its zoom state. I'm no X11 expert, so I don't know which is the most reliable. Do remember that different window managers handle iconification differently.
greyfade
+1  A: 

yes. there are several ways of doing it:

akira