@@ -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
5import "../../Components"
6import "../../Components"
@@ -21,9 +22,16 @@ Item {
21 sourceSize.width: width
22 sourceSize.width: width
22 sourceSize.height: height
23 sourceSize.height: height
25+ TopLevelWindowModel {
27+ applicationManager: ApplicationManager
28+ surfaceManager: SurfaceManager
29+ workspace: model.workspace
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