on xenial help sign in
use a toplevelwindowmodel per workspace
commit325ade42b307fbf60571d27b9a20f2eaf0b2081b authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 8 Mar 2017, 12:18 (10 years ago) parent53904db
1 file changed+9−1
qml/Stage/Spread/WorkspacePreview.qml+9−1
qml/Stage/Spread/WorkspacePreview.qml+9−1
@@ -1,6 +1,7 @@
11import QtQuick 2.4
22import Ubuntu.Components 1.3
33import Unity.Application 0.1
4+import WindowManager 1.0
45import ".."
56import "../../Components"
67
@@ -21,9 +22,16 @@ Item {
2122 sourceSize.width: width
2223 sourceSize.height: height
2324
25+ TopLevelWindowModel {
26+ id: windowModel
27+ applicationManager: ApplicationManager
28+ surfaceManager: SurfaceManager
29+ workspace: model.workspace
30+ }
31+
2432 Repeater {
2533 id: topLevelSurfaceRepeater
26− model: visible ? topLevelSurfaceList : null
34+ model: visible ? windowModel : null
2735 delegate: Rectangle {
2836 width: surfaceItem.width
2937 height: surfaceItem.height + decorationHeight * previewScale