grabHelper: Use a round trip for focusing the default window

We may release the focus grab at any time, so it's not guaranteed
we'll be in event processing. In particular, hovering over and out
of a notification will cause this to happen, as the notification
is hidden on a timeout.

https://bugzilla.gnome.org/show_bug.cgi?id=695659
This commit is contained in:
Jasper St. Pierre 2013-03-11 17:24:52 -04:00
parent f80afb1755
commit 8301acd4d6

View File

@ -248,7 +248,7 @@ const GrabHelper = new Lang.Class({
global.set_stage_input_mode(Shell.StageInputMode.FOCUSED);
}
global.screen.focus_default_window(global.get_current_time());
global.screen.focus_default_window(global.display.get_current_time_roundtrip());
},
// ignoreRelease: