summaryrefslogtreecommitdiff
path: root/plugins
diff options
authorBrandon Schaefer <brandon.schaefer@canonical.com>2014-08-05 16:13:28 -0700
committerBrandon Schaefer <brandon.schaefer@canonical.com>2014-08-05 16:13:28 -0700
commitb8b8da88cb000b1c62403085b13b6c47259653c8 (patch)
treefe9c88d07212dcecd7fc9d4faeb4f06f100b0cc9 /plugins
parent73b0582328d1978fe9c24597ddc21372d5703592 (diff)
* Make sure we check if the Quicklist or Alt+F1 key nav is open (so we can close them)
before checking if something as a WM grab. As we cant open the hud is in Quicklist or KeyNav anymore. Fixes LP: #1353167 (bzr r3844.1.3)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/unityshell/src/unityshell.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 41115b13a..ea1963599 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -2512,6 +2512,16 @@ bool UnityScreen::ShowHud()
}
else
{
+ // Handles closing KeyNav (Alt+F1) if the hud is about to show
+ if (launcher_controller_->KeyNavIsActive())
+ launcher_controller_->KeyNavTerminate(false);
+
+ if (dash_controller_->IsVisible())
+ dash_controller_->HideDash();
+
+ if (QuicklistManager::Default()->Current())
+ QuicklistManager::Default()->Current()->Hide();
+
auto& wm = WindowManager::Default();
if (wm.IsTopWindowFullscreenOnMonitorWithMouse())
@@ -2530,16 +2540,6 @@ bool UnityScreen::ShowHud()
return false;
}
- // Handles closing KeyNav (Alt+F1) if the hud is about to show
- if (launcher_controller_->KeyNavIsActive())
- launcher_controller_->KeyNavTerminate(false);
-
- if (dash_controller_->IsVisible())
- dash_controller_->HideDash();
-
- if (QuicklistManager::Default()->Current())
- QuicklistManager::Default()->Current()->Hide();
-
hud_ungrab_slot_->disconnect();
hud_controller_->ShowHud();
}