From a87ba467aeee0debb606efb9dc95084b7c66f584 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 20 Sep 2012 19:36:52 -0300 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 6892ba193..cfc2e6ce1 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;