[gnome-shell] messageTray: Don't open the tray from a dwell if we're in a modal grab



commit a87ba467aeee0debb606efb9dc95084b7c66f584
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Sep 20 19:36:52 2012 -0300

    messageTray: Don't open the tray from a dwell if we're in a modal grab
    
    If we're in an alt-tab popup or modal dialog, we shouldn't pop up the tray
    at all.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684458

 js/ui/messageTray.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 6892ba1..cfc2e6c 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1561,6 +1561,9 @@ const MessageTray = new Lang.Class({
     },
 
     _trayDwellTimeout: function() {
+        if (Main.modalCount > 0)
+            return false;
+
         // If the user interacted with the focus window since we started the tray
         // dwell (by clicking or typing), don't activate the message tray
         let focusWindow = global.display.focus_window;



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