@@ -722,6 +722,7 @@ FocusScope {
722 readonly property string appName: model.application ? model.application.name : ""
722 readonly property string appName: model.application ? model.application.name : ""
723 property bool visuallyMaximized: false
723 property bool visuallyMaximized: false
724 property bool visuallyMinimized: false
724 property bool visuallyMinimized: false
725+ readonly property alias windowedTransitionRunning: windowedTransition.running
726 property int stage: ApplicationInfoInterface.MainStage
727 property int stage: ApplicationInfoInterface.MainStage
727 function saveStage(newStage) {
728 function saveStage(newStage) {
@@ -1173,7 +1174,7 @@ FocusScope {
1176− name: "maximized"; when: appDelegate.windowState == WindowStateStorage.WindowStateMaximized
1177+ name: "maximized"; when: appDelegate.maximized && !appDelegate.minimized
1177 PropertyChanges {
1178 PropertyChanges {
1178 target: appDelegate;
1179 target: appDelegate;
1179 requestedX: root.leftMargin;
1180 requestedX: root.leftMargin;
@@ -1313,7 +1314,7 @@ FocusScope {
1313 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,opacity,requestedWidth,requestedHeight,scale"; duration: priv.animationDuration }
1314 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,opacity,requestedWidth,requestedHeight,scale"; duration: priv.animationDuration }
1315 Transition {
1316 Transition {
1316− from: "normal,maximized,maximizedHorizontally,maximizedVertically,maximizedLeft,maximizedRight,maximizedTopLeft,maximizedBottomLeft,maximizedTopRight,maximizedBottomRight";
1317+ from: "normal,restored,maximized,maximizedHorizontally,maximizedVertically,maximizedLeft,maximizedRight,maximizedTopLeft,maximizedBottomLeft,maximizedTopRight,maximizedBottomRight";
1317 to: "staged,stagedWithSideStage"
1318 to: "staged,stagedWithSideStage"
1318 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,requestedWidth,requestedHeight"; duration: priv.animationDuration}
1319 UbuntuNumberAnimation { target: appDelegate; properties: "x,y,requestedX,requestedY,requestedWidth,requestedHeight"; duration: priv.animationDuration}
@@ -1390,6 +1391,7 @@ FocusScope {
1392 Transition {
1393 Transition {
1394+ id: windowedTransition
1393 from: "normal,restored,maximized,maximizedLeft,maximizedRight,maximizedTop,maximizedBottom,maximizedTopLeft,maximizedTopRight,maximizedBottomLeft,maximizedBottomRight,maximizedHorizontally,maximizedVertically,fullscreen"
1395 from: "normal,restored,maximized,maximizedLeft,maximizedRight,maximizedTop,maximizedBottom,maximizedTopLeft,maximizedTopRight,maximizedBottomLeft,maximizedBottomRight,maximizedHorizontally,maximizedVertically,fullscreen"
1394 to: "normal,restored,maximized,maximizedLeft,maximizedRight,maximizedTop,maximizedBottom,maximizedTopLeft,maximizedTopRight,maximizedBottomLeft,maximizedBottomRight,maximizedHorizontally,maximizedVertically,fullscreen"
1396 to: "normal,restored,maximized,maximizedLeft,maximizedRight,maximizedTop,maximizedBottom,maximizedTopLeft,maximizedTopRight,maximizedBottomLeft,maximizedBottomRight,maximizedHorizontally,maximizedVertically,fullscreen"
1395 enabled: appDelegate.animationsEnabled
1397 enabled: appDelegate.animationsEnabled