"window-state-event" signal does not fire when the "above" state is changed from the Window Manager
Submitted by Hadrien
Link to original bug (#772654)
Description
Hi,
I'm writing a program that uses GTK+ on Ubuntu 16.04 x64, with Unity as the desktop manager running on top of X11.
I want to track the GDK_WINDOW_STATE_ABOVE window state, therefore my main window is subscribed to the "window-state-event" signal.
The signal callback is correctly called when I change most of the window states with the window manager, for example: iconify, maximize... however the callback is not called when I change the "above" state with the "always on top" option of the window.
I wrote a test program in pure X11 where I display the window state when the PropertyNotify event is received.
The test program shows that everything works fine regarding the "above" state: I correctly receive the PropertyNotify event, and the "_NET_WM_STATE_ABOVE" property is present or missing as expected according to the "always on top" menu item check box state of the window.
Maybe some kind of binding is missing with X11?
Version: 3.22.x