messageTray: Only update keyboardVisible as necessary

This fixes a case of _updateState() being called recursively,
resulting in stray grab()/ungrab() calls the leave the entire
desktop in a stuck focus state.

https://bugzilla.gnome.org/show_bug.cgi?id=683546
This commit is contained in:
Florian Müllner 2012-09-22 02:30:58 +02:00
parent fe124e6ab3
commit 6611d639a8

View File

@ -1868,6 +1868,9 @@ const MessageTray = new Lang.Class({
},
_onKeyboardVisibleChanged: function(layoutManager, keyboardVisible) {
if (this._keyboardVisible == keyboardVisible)
return;
this._keyboardVisible = keyboardVisible;
if (keyboardVisible)