summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 20:38:42 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 20:38:42 +0800
commit4661f546a5b6a33d00bf6f83912812f915e32da5 (patch)
treeb242d76cf836ec947e79e871d46aff2eceeaa9c2
parentdrawers: fix interactions (diff)
downloadcaelestia-shell-4661f546a5b6a33d00bf6f83912812f915e32da5.tar.gz
caelestia-shell-4661f546a5b6a33d00bf6f83912812f915e32da5.tar.bz2
caelestia-shell-4661f546a5b6a33d00bf6f83912812f915e32da5.zip
bar: fix storing only one
-rw-r--r--modules/bar/Content.qml2
-rw-r--r--modules/drawers/Drawers.qml2
-rw-r--r--services/Visibilities.qml3
3 files changed, 3 insertions, 4 deletions
diff --git a/modules/bar/Content.qml b/modules/bar/Content.qml
index adfd35b..4149521 100644
--- a/modules/bar/Content.qml
+++ b/modules/bar/Content.qml
@@ -19,7 +19,7 @@ StyledRect {
color: BorderConfig.colour
- Component.onCompleted: Visibilities.bar = this
+ Component.onCompleted: Visibilities.bars[screen] = this
Item {
id: child
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml
index 589ff34..d3d4bfa 100644
--- a/modules/drawers/Drawers.qml
+++ b/modules/drawers/Drawers.qml
@@ -43,7 +43,7 @@ Variants {
anchors.left: true
anchors.right: true
- margins.left: Visibilities.bar?.implicitWidth ?? 0
+ margins.left: Visibilities.bars[screen]?.implicitWidth ?? 0
Variants {
id: regions
diff --git a/services/Visibilities.qml b/services/Visibilities.qml
index 5c3e21a..4429398 100644
--- a/services/Visibilities.qml
+++ b/services/Visibilities.qml
@@ -4,8 +4,7 @@ import Quickshell
Singleton {
property var screens: ({})
-
- property var bar
+ property var bars: ({})
function getForActive(): PersistentProperties {
return Object.entries(screens).find(s => s[0].slice(s[0].indexOf('"') + 1, s[0].lastIndexOf('"')) === Hyprland.focusedMonitor.name)[1];