From ad7c6ea98e4588172398669bb8b7939999c7f121 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 13 May 2025 16:30:53 +1000 Subject: refactor: move to single window --- services/Drawers.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'services') diff --git a/services/Drawers.qml b/services/Drawers.qml index 6155d5d..7e7d97a 100644 --- a/services/Drawers.qml +++ b/services/Drawers.qml @@ -1,10 +1,16 @@ pragma Singleton import Quickshell +import QtQuick Singleton { id: root + property var visibilities: Quickshell.screens.reduce((acc, s) => { + acc[s] = visibleComp.createObject(root); + return acc; + }, {}) + property var positions: ({}) property int rightExclusion @@ -14,4 +20,15 @@ Singleton { positions[screen] = Qt.point(x, y); posChanged(screen, x, y); } + + Component { + id: visibleComp + + QtObject { + property bool launcher + property bool osd + property bool notifs + property bool session + } + } } -- cgit v1.2.3-freya