drawers: fix drag to open on empty ws
Ugh hyprland bug afaict
This commit is contained in:
parent
700a3504ca
commit
b1086c9a22
1 changed files with 12 additions and 6 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue