1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

hyprland: use FocusGrab for ondemand windows

This commit is contained in:
bbedward
2025-11-15 18:34:28 -05:00
parent 73c82a4dd9
commit 0a8a7895b3
3 changed files with 31 additions and 3 deletions

View File

@@ -92,6 +92,12 @@ PanelWindow {
if (!shouldHaveFocus) return WlrKeyboardFocus.None
return CompositorService.isHyprland ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.Exclusive
}
HyprlandFocusGrab {
windows: [root]
active: CompositorService.isHyprland && shouldHaveFocus
}
onVisibleChanged: {
if (root.visible) {
opened()