I'm trying to set my window to be GDK_FULLSCREEN_ON_ALL_MONITORS
but for this I have to use gdk_window_set_fullscreen_mode
, what is the GDK2 version of this?
Thanks
There is no GDK 2.x version of this API. The set_fullscreen_mode()
method was added in 2013, long after GTK+ 2.x was API frozen; this means that no new function is going to be added to the GTK+ 2.x API.
The implementation of the set_fullscreen_mode()
on X11 is not trivial; it implies getting the XINERAMA index of each monitor and sending a specially crafter ClientMessage
to the running window manager for the _NET_WM_FULLSCREEN_MONITORS
atom. You can see the implementation used in GDK attached to the issue that introduced it.
If you need this kind of functionality, you will have to use GTK+ 3.x.