Force focus workaround

This commit is contained in:
altrup
2026-01-02 16:04:01 -05:00
parent d5b599da3d
commit 31e821250f
@@ -52,9 +52,17 @@ Singleton {
}
}
function hasActive(element) {
return element.activeFocus || Array.from(
element.children
).some(
(child) => hasActive(child)
);
}
HyprlandFocusGrab {
id: grab
windows: [...root.persistent, ...root.dismissable]
windows: root.dismissable.some(w => hasActive(w.contentItem)) ? [...root.dismissable, ...root.persistent] : [...root.dismissable]
active: root.dismissable.length > 0
onCleared: () => {
root.dismiss();