quickshell: keep dropdown open while hovering bar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-26 21:01:28 +01:00
parent c6dc2632c3
commit 526f673f7d

View file

@ -575,6 +575,15 @@ in
color: Theme.barBg color: Theme.barBg
property var activeDropdown: null property var activeDropdown: null
HoverHandler {
onHoveredChanged: {
if (hovered && bar.activeDropdown) {
bar.activeDropdown.resetAutoClose();
}
}
}
function closeAllDropdowns() { function closeAllDropdowns() {
if (activeDropdown && activeDropdown.visible) { if (activeDropdown && activeDropdown.visible) {
activeDropdown.animateClose(); activeDropdown.animateClose();
@ -1029,6 +1038,10 @@ in
_closeDelay.start(); _closeDelay.start();
} }
function resetAutoClose() {
if (visible && !closing) _autoClose.restart();
}
anchor.window: bar anchor.window: bar
anchor.rect.x: dropdownX - (fullWidth + 16) / 2 anchor.rect.x: dropdownX - (fullWidth + 16) / 2
anchor.rect.y: bar.height anchor.rect.y: bar.height