Write helper function to check for window focus

Bug #1602985 reported by Zisu Andrei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Granite
New
Wishlist
Unassigned

Bug Description

As discussed on Slack with Adam, the AppCenter uses some Gdk calls to check whether the application window or any of its children are currently focused, something along the lines of:

   Gdk.Window.get_state () == Gdk.WindowState.FOCUSED

There was discussion at some point of doing a similar thing in Files, as it's currently using a Timeout workaround. And I guess there might be many more applications interested in using it.

Changed in granite:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.