GtkWindow "is-active" property looks broken
I try to pause and unpause a game when its window loses and regain focus. The code that uses the “notify” signal applied to the “is-active” window property (from GtkWindow) works correctly in Gtk3, but fails completely in Gtk4:
- no change of the property when the window loses focus;
- when the window gains focus, the “is-active” property is (re-)set to “false”;
- looks like the “is-active” property is set to “true” when something in the window gains the keyboard focus;
- the “is-active” property can be re-set to “false” even if something in the window has keyboard focus.