summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Content.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/popouts/Content.qml')
-rw-r--r--modules/bar/popouts/Content.qml13
1 files changed, 4 insertions, 9 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml
index 0e0f5f3..684f702 100644
--- a/modules/bar/popouts/Content.qml
+++ b/modules/bar/popouts/Content.qml
@@ -1,6 +1,5 @@
pragma ComponentBehavior: Bound
-import qs.services
import qs.config
import Quickshell
import Quickshell.Services.SystemTray
@@ -10,10 +9,6 @@ Item {
id: root
required property Item wrapper
- required property ShellScreen screen
- required property string currentName
- required property real currentCenter
- required property bool hasCurrent
anchors.centerIn: parent
@@ -63,10 +58,10 @@ Item {
sourceComponent: trayMenuComp
Connections {
- target: root
+ target: root.wrapper
function onHasCurrentChanged(): void {
- if (root.hasCurrent && trayMenu.shouldBeActive) {
+ if (root.wrapper.hasCurrent && trayMenu.shouldBeActive) {
trayMenu.sourceComponent = null;
trayMenu.sourceComponent = trayMenuComp;
}
@@ -77,7 +72,7 @@ Item {
id: trayMenuComp
TrayMenu {
- popouts: root
+ popouts: root.wrapper
trayItem: trayMenu.modelData.menu
}
}
@@ -89,7 +84,7 @@ Item {
id: popout
required property string name
- property bool shouldBeActive: root.currentName === name
+ property bool shouldBeActive: root.wrapper.currentName === name
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right