1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

hypr: add exclusive focus override

This commit is contained in:
bbedward
2025-12-05 10:37:24 -05:00
parent c69a55df29
commit b5378e5d3c
13 changed files with 29 additions and 17 deletions

View File

@@ -427,7 +427,7 @@ Item {
WlrLayershell.keyboardFocus: {
if (!root.menuOpen)
return WlrKeyboardFocus.None;
if (CompositorService.isHyprland)
if (CompositorService.useHyprlandFocusGrab)
return WlrKeyboardFocus.OnDemand;
return WlrKeyboardFocus.Exclusive;
}
@@ -436,7 +436,7 @@ Item {
HyprlandFocusGrab {
windows: [overflowMenu]
active: CompositorService.isHyprland && root.menuOpen
active: CompositorService.useHyprlandFocusGrab && root.menuOpen
}
Connections {
@@ -915,7 +915,7 @@ Item {
WlrLayershell.keyboardFocus: {
if (!menuRoot.showMenu)
return WlrKeyboardFocus.None;
if (CompositorService.isHyprland)
if (CompositorService.useHyprlandFocusGrab)
return WlrKeyboardFocus.OnDemand;
return WlrKeyboardFocus.Exclusive;
}
@@ -923,7 +923,7 @@ Item {
HyprlandFocusGrab {
windows: [menuWindow]
active: CompositorService.isHyprland && menuRoot.showMenu
active: CompositorService.useHyprlandFocusGrab && menuRoot.showMenu
}
anchors {