summaryrefslogtreecommitdiff
path: root/modules/controlcenter/ControlCenter.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/ControlCenter.qml')
-rw-r--r--modules/controlcenter/ControlCenter.qml21
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/controlcenter/ControlCenter.qml b/modules/controlcenter/ControlCenter.qml
index e528389..9a34861 100644
--- a/modules/controlcenter/ControlCenter.qml
+++ b/modules/controlcenter/ControlCenter.qml
@@ -30,10 +30,27 @@ Item {
implicitWidth: implicitHeight * Config.controlCenter.sizes.ratio
implicitHeight: screen.height * Config.controlCenter.sizes.heightMult
- RowLayout {
+ GridLayout {
anchors.fill: parent
- spacing: 0
+ rowSpacing: 0
+ columnSpacing: 0
+ rows: root.floating ? 2 : 1
+ columns: 2
+
+ Loader {
+ Layout.fillWidth: true
+ Layout.columnSpan: 2
+
+ asynchronous: true
+ active: root.floating
+ visible: active
+
+ sourceComponent: WindowTitle {
+ screen: root.screen
+ session: root.session
+ }
+ }
StyledRect {
Layout.fillHeight: true