@@ -53,12 +53,12 @@ FocusScope {
53 property real leftEdgeDragProgress: 0
53 property real leftEdgeDragProgress: 0
55 // Used by the tutorial code
55 // Used by the tutorial code
56− readonly property bool spreadShown: state == "spread"
57 readonly property real rightEdgeDragProgress: rightEdgeDragArea.progress // How far left the stage has been dragged
56 readonly property real rightEdgeDragProgress: rightEdgeDragArea.progress // How far left the stage has been dragged
59 // used by the snap windows (edge maximize) feature
58 // used by the snap windows (edge maximize) feature
60 readonly property alias previewRectangle: fakeRectangle
59 readonly property alias previewRectangle: fakeRectangle
61+ readonly property bool spreadShown: state == "spread"
62 readonly property var mainApp: priv.focusedAppDelegate ? priv.focusedAppDelegate.application : null
62 readonly property var mainApp: priv.focusedAppDelegate ? priv.focusedAppDelegate.application : null
64 // application windows never rotate independently
64 // application windows never rotate independently
@@ -105,6 +105,10 @@ FocusScope {
105 edgeBarrier.push(amount);
105 edgeBarrier.push(amount);
108+ function closeSpread() {
109+ priv.goneToSpread = false;
108 onSpreadEnabledChanged: {
112 onSpreadEnabledChanged: {
109 if (!spreadEnabled && root.state == "spread") {
113 if (!spreadEnabled && root.state == "spread") {
110 priv.goneToSpread = false;
114 priv.goneToSpread = false;