From b1086c9a22e2f61ba558cecf1f59bf3cdff6f5ab Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 20 Sep 2025 22:08:30 +1000 Subject: drawers: fix drag to open on empty ws Ugh hyprland bug afaict --- modules/drawers/Drawers.qml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'modules/drawers/Drawers.qml') diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 3503697..3a6c646 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -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: { -- cgit v1.2.3-freya