fix weird osd position when bar autohides

This commit is contained in:
end-4
2025-08-11 22:46:28 +07:00
parent d448b76dd4
commit 211c4fb102
3 changed files with 16 additions and 7 deletions
@@ -15,7 +15,6 @@ LazyLoader {
component: PanelWindow {
id: popupWindow
visible: true
color: "transparent"
anchors.left: true
@@ -52,6 +52,7 @@ Scope {
sourceComponent: PanelWindow {
id: osdRoot
color: "transparent"
Connections {
target: root
@@ -60,11 +61,8 @@ Scope {
}
}
exclusionMode: ExclusionMode.Normal
WlrLayershell.namespace: "quickshell:onScreenDisplay"
WlrLayershell.layer: WlrLayer.Overlay
color: "transparent"
anchors {
top: !Config.options.bar.bottom
bottom: Config.options.bar.bottom
@@ -73,6 +71,13 @@ Scope {
item: osdValuesWrapper
}
exclusionMode: ExclusionMode.Ignore
exclusiveZone: 0
margins {
top: Appearance.sizes.barHeight
bottom: Appearance.sizes.barHeight
}
implicitWidth: columnLayout.implicitWidth
implicitHeight: columnLayout.implicitHeight
visible: osdLoader.active
@@ -64,6 +64,7 @@ Scope {
sourceComponent: PanelWindow {
id: osdRoot
color: "transparent"
Connections {
target: root
@@ -72,11 +73,8 @@ Scope {
}
}
exclusionMode: ExclusionMode.Normal
WlrLayershell.namespace: "quickshell:onScreenDisplay"
WlrLayershell.layer: WlrLayer.Overlay
color: "transparent"
anchors {
top: !Config.options.bar.bottom
bottom: Config.options.bar.bottom
@@ -85,6 +83,13 @@ Scope {
item: osdValuesWrapper
}
exclusionMode: ExclusionMode.Ignore
exclusiveZone: 0
margins {
top: Appearance.sizes.barHeight
bottom: Appearance.sizes.barHeight
}
implicitWidth: columnLayout.implicitWidth
implicitHeight: columnLayout.implicitHeight
visible: osdLoader.active