on xenial help sign in
use a toplevelwindowmodel per workspace
325ade4Michael Zanetti
qml/Stage/Spread/WorkspacePreview.qml+9−1
@@ -1,6 +1,7 @@
1import QtQuick 2.4
1import QtQuick 2.4
2import Ubuntu.Components 1.3
2import Ubuntu.Components 1.3
3import Unity.Application 0.1
3import Unity.Application 0.1
4+import WindowManager 1.0
4import ".."
5import ".."
5import "../../Components"
6import "../../Components"
6
7
@@ -21,9 +22,16 @@ Item {
21 sourceSize.width: width
22 sourceSize.width: width
22 sourceSize.height: height
23 sourceSize.height: height
23
24
25+ TopLevelWindowModel {
26+ id: windowModel
27+ applicationManager: ApplicationManager
28+ surfaceManager: SurfaceManager
29+ workspace: model.workspace
30+ }
31+
24 Repeater {
32 Repeater {
25 id: topLevelSurfaceRepeater
33 id: topLevelSurfaceRepeater
26− model: visible ? topLevelSurfaceList : null
34+ model: visible ? windowModel : null
27 delegate: Rectangle {
35 delegate: Rectangle {
28 width: surfaceItem.width
36 width: surfaceItem.width
29 height: surfaceItem.height + decorationHeight * previewScale
37 height: surfaceItem.height + decorationHeight * previewScale