GNOME Bugzilla – Bug 672011
AppMenuButton: Check input mode only on application focus changes
Last modified: 2012-03-17 00:15:47 UTC
Bailing out of _sync() early if the application lost keyboard focus to the shell can only be done on actual application focus changes. In particular, doing this check on a switch to an empty workspace while the keyboard focus is already on the shell prevents the AppMenuButton from being hidden as it should.
Created attachment 209636 [details] [review] AppMenuButton: Check input mode only on application focus changes
Review of attachment 209636 [details] [review]: Looks good. ::: js/ui/panel.js @@ +301,3 @@ let tracker = Shell.WindowTracker.get_default(); let appSys = Shell.AppSystem.get_default(); + tracker.connect('notify::focus-app', Lang.bind(this, this._maybeSync)); Now that we have a dedicated signal handler, should we call it _focusAppChanged or something? The code wasn't that obvious to me before I read the commit message, I suspect with the different name it'll be a bit more obvious.
Pushed with a renamed handler. Thanks Attachment 209636 [details] pushed as 985f28b - AppMenuButton: Check input mode only on application focus changes