Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/treeland/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Item {
MenuItem {
text: "Stack Layout"
onClicked: {
decorationManager.mode = XdgDecorationManager.PreferClientSide
decorationManager.mode = XdgDecorationManager.DecidesByClient
stackLayout.visible = true
}
}
Expand Down
17 changes: 16 additions & 1 deletion src/treeland/StackWorkspace.qml
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,34 @@ Item {
obj.doDestroy()
}

// TODO: Support server decoration
XdgSurface {
id: surface

property var doDestroy: helper.doDestroy
property var cancelMinimize: helper.cancelMinimize
property var surfaceDecorationMapper: surface.waylandSurface.XdgDecorationManager

topPadding: decoration.enable ? decoration.topMargin : 0
bottomPadding: decoration.enable ? decoration.bottomMargin : 0
leftPadding: decoration.enable ? decoration.leftMargin : 0
rightPadding: decoration.enable ? decoration.rightMargin : 0

WindowDecoration {
property var enable: surfaceDecorationMapper.enable

id: decoration
anchors.fill: parent
z: surface.contentItem.z - 1
visible: enable
}

StackToplevelHelper {
id: helper
surface: surface
waylandSurface: surface.waylandSurface
dockModel: dock.model
creator: toplevelComponent
decoration: decoration
}
}
}
Expand Down