@@ -19,10 +19,13 @@ import "../Components"
1919import Ubuntu.Components 1.3
2020import Ubuntu.Gestures 0.1
2121import Unity.Launcher 0.1
22+import Utils 0.1 as Utils
2223
2324FocusScope {
2425 id: root
2526
27+ readonly property int ignoreHideIfMouseOverLauncher: 1
28+
2629 property bool autohideEnabled: false
2730 property bool lockedVisible: false
2831 property bool available: true // can be used to disable all interactions
@@ -102,7 +105,10 @@ FocusScope {
102105 }
103106 }
104107
105− function hide() {
108+ function hide(flags) {
109+ if ((flags & ignoreHideIfMouseOverLauncher) && Utils.Functions.itemUnderMouse(panel)) {
110+ return;
111+ }
106112 switchToNextState("")
107113 }
108114
@@ -359,11 +365,11 @@ FocusScope {
359365 property bool animate: true
360366
361367 onApplicationSelected: {
362− root.hide();
368+ root.hide(ignoreHideIfMouseOverLauncher);
363369 launcherApplicationSelected(appId)
364370 }
365371 onShowDashHome: {
366− root.hide();
372+ root.hide(ignoreHideIfMouseOverLauncher);
367373 root.showDashHome();
368374 }
369375