diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-22 00:38:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-22 00:38:48 +1000 |
| commit | 229eaa284d4fbd5e4b5a27d16746f78b764e1ee8 (patch) | |
| tree | ee4feb4525e79aa3963a7c2157546f45e0b08cb7 | |
| parent | plugin/fsm: fix crash (diff) | |
| download | caelestia-shell-229eaa284d4fbd5e4b5a27d16746f78b764e1ee8.tar.gz caelestia-shell-229eaa284d4fbd5e4b5a27d16746f78b764e1ee8.tar.bz2 caelestia-shell-229eaa284d4fbd5e4b5a27d16746f78b764e1ee8.zip | |
drawers: fix input mask on special ws
| -rw-r--r-- | modules/drawers/Drawers.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml index 61644a3..4c795a5 100644 --- a/modules/drawers/Drawers.qml +++ b/modules/drawers/Drawers.qml @@ -40,7 +40,12 @@ Variants { WlrLayershell.exclusionMode: ExclusionMode.Ignore WlrLayershell.keyboardFocus: visibilities.launcher || visibilities.session ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None - mask: focusGrab.active || panels.popouts.isDetached || Hypr.focusedMonitor?.activeWorkspace?.lastIpcObject.windows > 0 ? inputMask : null + mask: { + if (focusGrab.active || panels.popouts.isDetached) + return inputMask; + const mon = Hypr.monitorFor(screen); + return mon?.lastIpcObject.specialWorkspace.name || mon?.activeWorkspace?.lastIpcObject.windows > 0 ? inputMask : null; + } anchors.top: true anchors.bottom: true |