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/bar/popouts/TrayMenu.qml | |
| 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/bar/popouts/TrayMenu.qml')
| -rw-r--r-- | modules/bar/popouts/TrayMenu.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/bar/popouts/TrayMenu.qml b/modules/bar/popouts/TrayMenu.qml index 07742db..59f310b 100644 --- a/modules/bar/popouts/TrayMenu.qml +++ b/modules/bar/popouts/TrayMenu.qml @@ -5,6 +5,7 @@ import qs.services import qs.config import Quickshell import Quickshell.Widgets +import Quickshell.Hyprland import QtQuick import QtQuick.Controls @@ -26,6 +27,12 @@ StackView { popEnter: Anim {} popExit: Anim {} + HyprlandFocusGrab { + active: true + windows: [QsWindow.window] + onCleared: root.popouts.hasCurrent = false + } + component Anim: Transition { NumberAnimation { duration: 0 |