GNOME Bugzilla – Bug 609202
Window Maker dockable app support
Last modified: 2013-02-13 03:53:17 UTC
I'd like to add some Window Maker/AfterStep dock support to this PyGTK app I'm writing. This basically involves setting wm_hints.initial_state to WithdrawnState when calling XSetWMHints(). Unfortunately, this cannot be done in GTK+, as update_wm_hints() will always set initial_state to either NormalState or IconicState. While I could go around GTK+ and mess directly with XSetWMHints() in C, this is more or less impossible from behind PyGTK. Would it be possible for update_wm_hints() to set initial_state to WithdrawnState on request?
I would like this too, but given the result of Bug 139322 I'm not going to hold my breath. It sure would be nice to be able to do this without hacks, as several window managers besides WindowMaker (openbox and fluxbox come to mind) need this. Note that just using XSetWMHints won't work anyway, because GTK calls update_wm_hints just before calling XMapWindow. You could hack around *that* by reparenting the problem X window to an unmapped window before calling gtk_widget_show (which prevents XMapWindow from actually mapping it), then doing XSetWMHints, and then reparenting it back.