@@ -129,7 +129,7 @@ AbstractStage {
129 property var foregroundMaximizedAppDelegate: null // for stuff like drop shadow and focusing maximized app by clicking panel
129 property var foregroundMaximizedAppDelegate: null // for stuff like drop shadow and focusing maximized app by clicking panel
131 property bool goneToSpread: false
131 property bool goneToSpread: false
132− property int animationDuration: /*UbuntuAnimation.FastDuration//*/ 4000//UbuntuAnimation.SleepyDuration
132+ property int animationDuration: UbuntuAnimation.FastDuration //4000//UbuntuAnimation.SleepyDuration
134 function updateForegroundMaximizedApp() {
134 function updateForegroundMaximizedApp() {
135 var found = false;
135 var found = false;
@@ -314,12 +314,6 @@ AbstractStage {
315 onStateChanged: print("spread going to state:", state)
315 onStateChanged: print("spread going to state:", state)
319− anchors.fill: appContainer
320− totalItemCount: appRepeater.count
324 FocusScope {
318 FocusScope {
325 id: appContainer
319 id: appContainer
@@ -335,6 +329,13 @@ AbstractStage {
335 fillMode: Image.PreserveAspectCrop
329 fillMode: Image.PreserveAspectCrop
334+ anchors.fill: appContainer
335+ totalItemCount: appRepeater.count
338 Connections {
339 Connections {
339 target: root.topLevelSurfaceList
340 target: root.topLevelSurfaceList
340 onListChanged: priv.updateMainAndSideStageIndexes()
341 onListChanged: priv.updateMainAndSideStageIndexes()
@@ -734,6 +735,7 @@ AbstractStage {
734 itemScale: spreadMaths.scale
735 itemScale: spreadMaths.scale
735 scaleToPreviewSize: spreadItem.stackHeight
736 scaleToPreviewSize: spreadItem.stackHeight
736 scaleToPreview: true
737 scaleToPreview: true
738+ hasDecoration: root.mode === "windowed"
738 PropertyChanges {
740 PropertyChanges {
739 target: appDelegate
741 target: appDelegate
@@ -907,6 +909,12 @@ AbstractStage {
907 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
909 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
908 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,requestedWidth,requestedHeight,scale"; duration: priv.animationDuration }
910 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,requestedWidth,requestedHeight,scale"; duration: priv.animationDuration }
913+ from: "spread"; to: "staged,normal"
914+// UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
915+// UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle"; duration: priv.animationDuration }
916+ ScriptAction { script: if (appDelegate.focus) appDelegate.playFocusAnimation() }
910 Transition {
918 Transition {
911 to: "minimized"
919 to: "minimized"
912 enabled: appDelegate.animationsEnabled
920 enabled: appDelegate.animationsEnabled
@@ -946,11 +954,6 @@ AbstractStage {
946 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
954 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
947 UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle"; duration: priv.animationDuration }
955 UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle"; duration: priv.animationDuration }
950− from: "spread"; to: "staged,normal"
951− UbuntuNumberAnimation { target: appDelegate; properties: "x,y,height"; duration: priv.animationDuration }
952− UbuntuNumberAnimation { target: decoratedWindow; properties: "width,height,itemScale,angle"; duration: priv.animationDuration }
954 Transition {
957 Transition {
955 from: "normal,staged"; to: "stagedWithSideStage"
958 from: "normal,staged"; to: "stagedWithSideStage"
956 UbuntuNumberAnimation { target: appDelegate; properties: "x,y"; duration: priv.animationDuration }
959 UbuntuNumberAnimation { target: appDelegate; properties: "x,y"; duration: priv.animationDuration }
@@ -1303,13 +1306,4 @@ AbstractStage {
1308− anchors { left: parent.left; top: parent.top; margins: units.gu(4) }
1309− text: "spreadWidth: " + spreadItem.spreadWidth
1310− + "\n spreadItemWidth: " + spreadItem.spreadItemWidth
1311− + "\n flickableContentWidth: " + floatingFlickable.contentWidth
1312− + "\n visibleItemCount: " + spreadItem.visibleItemCount
1313− + "\n contentTopMargin: " + spreadItem.contentTopMargin