mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
bar: disable exclusion zone when the bar is explicitely toggled off. Fix #1686
This commit is contained in:
@@ -3,6 +3,7 @@ import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import qs.Commons
|
||||
import qs.Services.Compositor
|
||||
import qs.Services.UI
|
||||
|
||||
/**
|
||||
* BarExclusionZone - Invisible PanelWindow that reserves exclusive space for the bar
|
||||
@@ -31,8 +32,11 @@ PanelWindow {
|
||||
// Wayland layer shell configuration
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
WlrLayershell.namespace: "noctalia-bar-exclusion-" + edge + "-" + (screen?.name || "unknown")
|
||||
// When auto-hide is enabled, never reserve space
|
||||
WlrLayershell.exclusionMode: autoHide ? ExclusionMode.Ignore : ExclusionMode.Auto
|
||||
// When auto-hide is enabled OR bar is explicitly hidden via IPC, don't reserve space
|
||||
// Note: We check BarService.isVisible directly, NOT effectivelyVisible, because we want
|
||||
// the exclusion zone to stay during overview (effectivelyVisible is false during overview
|
||||
// when hideOnOverview is enabled, but isVisible remains true)
|
||||
WlrLayershell.exclusionMode: (autoHide || !BarService.isVisible) ? ExclusionMode.Ignore : ExclusionMode.Auto
|
||||
|
||||
// Anchor based on specified edge
|
||||
anchors {
|
||||
|
||||
Reference in New Issue
Block a user