diff options
Diffstat (limited to 'modules/drawers/Interactions.qml')
| -rw-r--r-- | modules/drawers/Interactions.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 56e2d6b..9579b15 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -68,8 +68,10 @@ CustomMouseArea { if (!utilitiesShortcutActive) visibilities.utilities = false; - if (!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) + if (!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) { popouts.hasCurrent = false; + bar.closeTray(); + } if (Config.bar.showOnHover) bar.isHovered = false; @@ -197,10 +199,12 @@ CustomMouseArea { } // Show popouts on hover - if (x < bar.implicitWidth) + if (x < bar.implicitWidth) { bar.checkPopout(y); - else if ((!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) && !inLeftPanel(panels.popouts, x, y)) + } else if ((!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) && !inLeftPanel(panels.popouts, x, y)) { popouts.hasCurrent = false; + bar.closeTray(); + } } // Monitor individual visibility changes |