summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];