Blame SOURCES/0001-main-Close-runDialog-as-necessary-on-session-mode-ch.patch

4c1248
From d1eb56f4ad154f8bada35b5b9d13fbdb325be1a6 Mon Sep 17 00:00:00 2001
4c1248
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
4c1248
Date: Wed, 18 Sep 2013 19:47:59 +0200
4c1248
Subject: [PATCH] main: Close runDialog as necessary on session mode changes
4c1248
4c1248
We already do this for looking glass, but it makes even less sense
4c1248
for the normal run dialog - if a mode sets runDialog to false, the
4c1248
intention is to not allow executing aribitrary commands.
4c1248
4c1248
https://bugzilla.gnome.org/show_bug.cgi?id=708218
4c1248
---
4c1248
 js/ui/main.js | 8 ++++++--
4c1248
 1 file changed, 6 insertions(+), 2 deletions(-)
4c1248
4c1248
diff --git a/js/ui/main.js b/js/ui/main.js
4c1248
index bd5dc47..ff8cd2c 100644
4c1248
--- a/js/ui/main.js
4c1248
+++ b/js/ui/main.js
4c1248
@@ -84,8 +84,12 @@ function _sessionUpdated() {
4c1248
                                   Shell.KeyBindingMode.OVERVIEW,
4c1248
                                   sessionMode.hasRunDialog ? openRunDialog : null);
4c1248
 
4c1248
-    if (!sessionMode.hasRunDialog && lookingGlass)
4c1248
-        lookingGlass.close();
4c1248
+    if (!sessionMode.hasRunDialog) {
4c1248
+        if (runDialog)
4c1248
+            runDialog.close();
4c1248
+        if (lookingGlass)
4c1248
+            lookingGlass.close();
4c1248
+    }
4c1248
 }
4c1248
 
4c1248
 function start() {
4c1248
-- 
4c1248
1.8.4.2
4c1248