drawers: fix drag to open on empty ws

Ugh hyprland bug afaict
This commit is contained in:
2 * r + 2 * t 2025-09-20 22:08:30 +10:00
parent 700a3504ca
commit b1086c9a22

View file

@ -40,7 +40,16 @@ Variants {
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.session ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
mask: Region {
mask: focusGrab.active || Hypr.focusedMonitor?.activeWorkspace?.lastIpcObject.windows > 0 ? inputMask : null
anchors.top: true
anchors.bottom: true
anchors.left: true
anchors.right: true
Region {
id: inputMask
x: bar.implicitWidth
y: Config.border.thickness
width: win.width - bar.implicitWidth - Config.border.thickness
@ -50,11 +59,6 @@ Variants {
regions: regions.instances
}
anchors.top: true
anchors.bottom: true
anchors.left: true
anchors.right: true
Variants {
id: regions
@ -72,6 +76,8 @@ Variants {
}
HyprlandFocusGrab {
id: focusGrab
active: (visibilities.launcher && Config.launcher.enabled) || (visibilities.session && Config.session.enabled) || (visibilities.sidebar && Config.sidebar.enabled)
windows: [win]
onCleared: {