summaryrefslogtreecommitdiff
path: root/modules/drawers
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-09 21:57:44 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-09 21:57:44 +1000
commitc3e8127422c7439d9ddb07e3634c892abb7b53f4 (patch)
tree75df572c5ca70e7e52168f14bf515130b2dcf817 /modules/drawers
parentnotifs: add indicators for offscreen notifs (diff)
downloadcaelestia-shell-c3e8127422c7439d9ddb07e3634c892abb7b53f4.tar.gz
caelestia-shell-c3e8127422c7439d9ddb07e3634c892abb7b53f4.tar.bz2
caelestia-shell-c3e8127422c7439d9ddb07e3634c892abb7b53f4.zip
internal: pass around visibilities
Instead of singleton Also for panels
Diffstat (limited to 'modules/drawers')
-rw-r--r--modules/drawers/Drawers.qml1
-rw-r--r--modules/drawers/Panels.qml5
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/drawers/Drawers.qml b/modules/drawers/Drawers.qml
index 10cd86b..27088a4 100644
--- a/modules/drawers/Drawers.qml
+++ b/modules/drawers/Drawers.qml
@@ -135,6 +135,7 @@ Variants {
id: bar
screen: scope.modelData
+ visibilities: visibilities
popouts: panels.popouts
}
}
diff --git a/modules/drawers/Panels.qml b/modules/drawers/Panels.qml
index 5b2229c..909fc9f 100644
--- a/modules/drawers/Panels.qml
+++ b/modules/drawers/Panels.qml
@@ -27,8 +27,6 @@ Item {
anchors.margins: Config.border.thickness
anchors.leftMargin: bar.implicitWidth
- Component.onCompleted: Visibilities.panels[screen] = this
-
Osd.Wrapper {
id: osd
@@ -44,6 +42,9 @@ Item {
Notifications.Wrapper {
id: notifications
+ visibilities: root.visibilities
+ panel: root
+
anchors.top: parent.top
anchors.right: parent.right
}