[gnome-shell] messageTray: fix a warning



commit fd25cf30ff69cc208524f7f6c8f1009a8b376c39
Author: Dan Winship <danw gnome org>
Date:   Thu Sep 8 16:50:32 2011 -0400

    messageTray: fix a warning
    
    Check for click in keyboardBox rather than Main.keyboard.actor, since
    the latter won't exist when the keyboard is hidden.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=658598

 js/ui/messageTray.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index f2721cf..6de4b7a 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -284,7 +284,8 @@ FocusGrabber.prototype = {
         let source = event.get_source();
         switch (event.type()) {
             case Clutter.EventType.BUTTON_PRESS:
-                if (!this.actor.contains(source) && !Main.keyboard.actor.contains(source))
+                if (!this.actor.contains(source) &&
+                    !Main.layoutManager.keyboardBox.contains(source))
                     this.emit('button-pressed', source);
                 break;
             case Clutter.EventType.KEY_PRESS:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]