1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-15 09:52:50 -05:00

dankbar/mask: extra polish for Hyprland maybe

This commit is contained in:
bbedward
2025-11-15 18:03:57 -05:00
parent ccf28fc4e7
commit 73c82a4dd9
8 changed files with 37 additions and 87 deletions

View File

@@ -88,7 +88,10 @@ PanelWindow {
}
}
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: shouldHaveFocus ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
WlrLayershell.keyboardFocus: {
if (!shouldHaveFocus) return WlrKeyboardFocus.None
return CompositorService.isHyprland ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.Exclusive
}
onVisibleChanged: {
if (root.visible) {
opened()