diff options
Diffstat (limited to 'bar/Bar.qml')
| -rw-r--r-- | bar/Bar.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bar/Bar.qml b/bar/Bar.qml index 2ad13d1..372f6f4 100644 --- a/bar/Bar.qml +++ b/bar/Bar.qml @@ -3,6 +3,8 @@ import Quickshell import QtQuick.Layouts import qs.components import qs.config +import "../popups/launcher" +import ".." Scope { id: root @@ -84,6 +86,10 @@ Scope { ActiveWindow { id: activeWindow width: Math.min(implicitWidth, child.width - Math.max(leftRow.width, rightRow.width) * 2 - Bar.leftMargin - Bar.rightMargin) // we don't do child.width - leftRow.width - rightRow.width because left and right width isn't symetric, and we're centered meaning we will colide into the larger width side + // i could do implicitWidth but that wouldnt be the immediate width + onWidthChanged: { + SharedState.centerBarWidth = width; + } } } |
