GNOME Bugzilla – Bug 696259
Unexpected focus events happen with Alt+Tab
Last modified: 2013-03-28 15:33:34 UTC
If I press Alt+Tab and move the focus from gedit to thunderbird in gnome-shell, GtkIMContext receives the following focus events: 1) (gedit:445): IBUS-WARNING **: 15:32:36:717 focus_out 2) (thunderbird:495): IBUS-WARNING **: 15:32:36:866 focus_in 3) (gedit:445): IBUS-WARNING **: 15:32:36:875 focus_in 4) (gedit:445): IBUS-WARNING **: 15:32:36:890 focus_out I understand 1) and 2) but I don't understand why 3) and 4) can happen and I guess it might be a bug in mutter. I tried to get the stack in 3):
+ Trace 231668
*** Bug 696365 has been marked as a duplicate of this bug. ***
Actually my fault on the swicherPopup work. Fix coming.
Created attachment 239555 [details] [review] altTab: Move input focus to target window before dropping the grab We chain up on _finish() to drop the grab and destroy the switcher popup but we should activate the target window first because dropping the grab results in the previously focused windows getting a focus in event immediately followed by the focus out event from the target window activation which we can easily avoid.
Review of attachment 239555 [details] [review]: Yes.
Review of attachment 239555 [details] [review]: thats now
Attachment 239555 [details] pushed as bf02cde - altTab: Move input focus to target window before dropping the grab