summaryrefslogtreecommitdiff
diff options
-rw-r--r--plugins/unityshell/src/unityshell.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index d670040da..7dd6bb267 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -3723,7 +3723,11 @@ void UnityScreen::OnDashRealized()
void UnityScreen::LockscreenRequested()
{
- if (launcher_controller_->IsOverlayOpen())
+ if (switcher_controller_->Visible())
+ {
+ switcher_controller_->Hide(false);
+ }
+ else if (launcher_controller_->IsOverlayOpen())
{
dash_controller_->HideDash();
hud_controller_->HideHud();