Bar/: refactor layout

This commit is contained in:
Ly-sec
2025-09-23 00:20:06 +02:00
parent 9bb60d0ae3
commit 609f1e9655
6 changed files with 26 additions and 10 deletions
+7 -1
View File
@@ -108,7 +108,7 @@ Variants {
if (toplevel && toplevel.appId) {
const isPinned = pinnedApps.includes(toplevel.appId)
const appType = isPinned ? "pinned-running" : "running"
combined.push({
"type": appType,
"toplevel": toplevel,
@@ -461,6 +461,12 @@ Variants {
root.currentContextMenu = contextMenu
} else if (root.currentContextMenu === contextMenu) {
root.currentContextMenu = null
// Reset menu hover state when menu becomes invisible
menuHovered = false
// Restart hide timer if conditions are met
if (autoHide && !dockHovered && !anyAppHovered && !peekHovered) {
hideTimer.restart()
}
}
}
}