Extract panels out into their own top-level concern

This commit is contained in:
David Heinemeier Hansson
2026-05-20 13:51:39 +02:00
parent 3b9700682c
commit ea1b0e7ced
23 changed files with 154 additions and 152 deletions
+3 -3
View File
@@ -55,8 +55,8 @@ PopupWindow {
return Math.round(Math.min(desired, maxHeight))
}
function closePopout() {
if (owner && "closePopout" in owner) owner.closePopout()
function close() {
if (owner && "close" in owner) owner.close()
else root.open = false
}
@@ -80,7 +80,7 @@ PopupWindow {
HyprlandFocusGrab {
active: root.open && root.triggerMode === "click"
windows: root.anchorWindow ? [root, root.anchorWindow] : [root]
onCleared: root.closePopout()
onCleared: root.close()
}
anchor {