Ticket #1198 (new enhancement)

Opened 5 years ago

Expose necessary functions to set _NET_WM_STRUT_PARTIAL on a window

Reported by: guest Owned by: somebody
Priority: normal Milestone:
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc:


Hi there!

For the dock of Bluetile ( http://www.bluetile.org/ ) I used Gtk2Hs to create the GUI. That worked fine and I appreciate how straightforward Gtk2Hs made that for me.

However, I ran into problems when I tried to find a way how to set the _NET_WM_STRUT_PARTIAL property on my window which is intended to signal the window manager to reserve space at the edge of the screen for a window. This is very convenient for things like docks and in my case necessary for correct behaviour (see also http://standards.freedesktop.org/wm-spec/wm-spec-latest.html#id2552096 ).

I ended up creating a custom FFI binding to gdk_property_change. The code for that can be found in this repository: http://code.haskell.org/~jav/bluetile-backport/ The files bluetiledock/gdk_property_change_wrapper.c and bluetiledock/BluetileDock.hs are of interest.

To be able to get rid of this workaround in future versions, I would like to request that Gtk2Hs exposes the necessary functions and data types to make this possible without having to resort to FFI.

Best regards, Jan

Note: See TracTickets for help on using tickets.