summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 22:08:30 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-20 22:08:30 +1000
commitb1086c9a22e2f61ba558cecf1f59bf3cdff6f5ab (patch)
treeb483c995e2bcf12f4509ccb9f976b22ca6b9f66d
parentinternal: make osd, session and utilities exclusive (diff)
downloadcaelestia-shell-b1086c9a22e2f61ba558cecf1f59bf3cdff6f5ab.tar.gz
caelestia-shell-b1086c9a22e2f61ba558cecf1f59bf3cdff6f5ab.tar.bz2
caelestia-shell-b1086c9a22e2f61ba558cecf1f59bf3cdff6f5ab.zip
drawers: fix drag to open on empty ws
Ugh hyprland bug afaict
-rw-r--r--modules/drawers/Drawers.qml18
1 files changed, 12 insertions, 6 deletions
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: {