diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 17:21:05 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-23 17:21:05 +1000 |
| commit | e104428b2893ca9f0cf4557f300f67bb70f13081 (patch) | |
| tree | 183291d5f3a99f4fa3ace98b521e3ea53162de68 /modules/drawers | |
| parent | popouts: better bluetooth popout (diff) | |
| download | caelestia-shell-e104428b2893ca9f0cf4557f300f67bb70f13081.tar.gz caelestia-shell-e104428b2893ca9f0cf4557f300f67bb70f13081.tar.bz2 caelestia-shell-e104428b2893ca9f0cf4557f300f67bb70f13081.zip | |
popouts: better tray menu focus handling
Don't hide on hover lost, use a focus grab instead
Diffstat (limited to 'modules/drawers')
| -rw-r--r-- | modules/drawers/Interactions.qml | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 60e74de..6640d22 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -60,7 +60,8 @@ MouseArea { if (!utilitiesShortcutActive) visibilities.utilities = false; - popouts.hasCurrent = false; + if (!popouts.currentName.startsWith("traymenu")) + popouts.hasCurrent = false; if (Config.bar.showOnHover) bar.isHovered = false; @@ -138,16 +139,8 @@ MouseArea { } // Show popouts on hover - const popout = panels.popouts; - if (x < bar.implicitWidth + popout.width) { - if (x < bar.implicitWidth) - // Handle like part of bar - bar.checkPopout(y); - else - // Keep on hover - popouts.hasCurrent = withinPanelHeight(popout, x, y); - } else - popouts.hasCurrent = false; + if (x < bar.implicitWidth) + bar.checkPopout(y); } // Monitor individual visibility changes |