1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-15 18:02: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

@@ -28,7 +28,6 @@ PanelWindow {
property list<real> animationEnterCurve: Theme.expressiveCurves.expressiveDefaultSpatial
property list<real> animationExitCurve: Theme.expressiveCurves.emphasized
property bool shouldBeVisible: false
property int keyboardFocusMode: WlrKeyboardFocus.Exclusive
visible: false
@@ -97,7 +96,10 @@ PanelWindow {
}
}
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: shouldBeVisible ? keyboardFocusMode : WlrKeyboardFocus.None
WlrLayershell.keyboardFocus: {
if (!shouldBeVisible) return WlrKeyboardFocus.None
return CompositorService.isHyprland ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.Exclusive
}
anchors {
top: true