From 6611d639a86ed70d2e281496f94603e21f885b0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 22 Sep 2012 02:30:58 +0200 Subject: [PATCH] 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 --- js/ui/messageTray.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index ea4b47246..7f76b959d 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1868,6 +1868,9 @@ const MessageTray = new Lang.Class({ }, _onKeyboardVisibleChanged: function(layoutManager, keyboardVisible) { + if (this._keyboardVisible == keyboardVisible) + return; + this._keyboardVisible = keyboardVisible; if (keyboardVisible)