grabHelper: Set _grabbedFromKeynav

This one got lost in commit b203a95a7.

https://bugzilla.gnome.org/show_bug.cgi?id=683546
This commit is contained in:
Florian Müllner 2012-09-17 18:11:27 +02:00
parent daceb8105f
commit f6645a41d2

View File

@ -203,7 +203,7 @@ const GrabHelper = new Lang.Class({
global.sync_pointer();
},
_takeFocusGrab: function() {
_takeFocusGrab: function(hadFocus) {
let firstGrab = (this._grabFocusCount == 0);
this._grabFocusCount++;
if (!firstGrab)
@ -211,6 +211,7 @@ const GrabHelper = new Lang.Class({
let metaDisplay = global.screen.get_display();
this._grabbedFromKeynav = hadFocus;
this._preGrabInputMode = global.stage_input_mode;
this._prevFocusedWindow = metaDisplay.focus_window;