X11 showing / hiding windows


I'm trying to show / hide X11 windows. I can already grab each window's id (Window object), but when I do XUnmapWindow() nothing happens.
I also took a look at how it is done in Gdk, and they do the same thing, except they call XWithdrawWindow() on top-level windows. Now doing that didn't really help. What am I doing wrong?
There is a program wmctrl [http://sweb.cz/tripie/utils/wmctrl/] that does this sort of thing. Maybe have a look at the code.
Topic archived. No new replies allowed.