From: Wolfgang J. <g9k...@ac...> - 2009-07-17 16:29:49
|
Am Freitag, 17. Juli 2009 15:56 schrieb Jan Vornberger: > Hello! > > I'm working on a dock application for XMonad and would like to have the > property '_NET_WM_STRUT_PARTIAL' be set on the window. So far I haven't > had any luck. > > Things I have tried so far: > > 1) Setting the window type to Gdk::Window::TYPE_HINT_DOCK. This sets > _NET_WM_WINDOW_TYPE correctly, but doesn't create any STRUT-properties. > So unfortunately that is not enough for me. > > 2) The next plan was to set the property manually using > gdk_property_change() (documented at > http://library.gnome.org/devel/gdk/stable/gdk-Properties-and-Atoms.html). > But as far as I can tell, this function is not (yet) exposed through > gtk2hs. Is this correct? > > 3) Then I was thinking of using low-level xlib calls to set the > property. For this I would need to get the XID of the GdkWindow (I'm on > Linux, the code doesn't have to be portable). This should be possible > using GDK_WINDOW_XID (documented at > http://library.gnome.org/devel/gdk/stable/gdk-X-Window-System-Interaction.h >tml). But this function is also not (yet) exposed, right? > > So I am out of ideas right now. Anyone has any suggestions for me? Is > there some other way to get the XID of a gtk2hs window? Or to set > properties on windows? > > Regards, > > Jan If some GTK+ functions are not exposed, you should be able to expose them yourself by writing an appropriate foreign declaration. Best wishes, Wolfgang |