summaryrefslogtreecommitdiff
path: root/modules/drawers/Interactions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 22:23:55 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 22:23:55 +1000
commite12b9ee3720ec5596cb8b0ee1bd00b94cfc7935e (patch)
tree6c9eb7a62881384610fe451b8c108a592e4fae21 /modules/drawers/Interactions.qml
parentdrawers: fix drag to open on empty ws (diff)
downloadcaelestia-shell-e12b9ee3720ec5596cb8b0ee1bd00b94cfc7935e.tar.gz
caelestia-shell-e12b9ee3720ec5596cb8b0ee1bd00b94cfc7935e.tar.bz2
caelestia-shell-e12b9ee3720ec5596cb8b0ee1bd00b94cfc7935e.zip
internal: centralise focus grabs
Except detached popouts focus grab (its meant to be exclusive to the other grab)
Diffstat (limited to 'modules/drawers/Interactions.qml')
-rw-r--r--modules/drawers/Interactions.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml
index 84714b5..56e2d6b 100644
--- a/modules/drawers/Interactions.qml
+++ b/modules/drawers/Interactions.qml
@@ -68,7 +68,7 @@ CustomMouseArea {
if (!utilitiesShortcutActive)
visibilities.utilities = false;
- if (!popouts.currentName.startsWith("traymenu") || popouts.current?.depth <= 1)
+ if (!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1)
popouts.hasCurrent = false;
if (Config.bar.showOnHover)
@@ -199,7 +199,7 @@ CustomMouseArea {
// Show popouts on hover
if (x < bar.implicitWidth)
bar.checkPopout(y);
- else if (!popouts.currentName.startsWith("traymenu") && !inLeftPanel(panels.popouts, x, y))
+ else if ((!popouts.currentName.startsWith("traymenu") || (popouts.current?.depth ?? 0) <= 1) && !inLeftPanel(panels.popouts, x, y))
popouts.hasCurrent = false;
}