@@ -68,28 +68,27 @@ AbstractStage {
68 id: maximizeWindowShortcut
68 id: maximizeWindowShortcut
69 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Up
69 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Up
70 onTriggered: priv.focusedAppDelegate.maximize()
70 onTriggered: priv.focusedAppDelegate.maximize()
71− active: priv.focusedAppDelegate !== null
71+ active: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.canBeMaximized
74 GlobalShortcut {
74 GlobalShortcut {
75 id: maximizeWindowLeftShortcut
75 id: maximizeWindowLeftShortcut
76 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Left
76 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Left
77 onTriggered: priv.focusedAppDelegate.maximizeLeft()
77 onTriggered: priv.focusedAppDelegate.maximizeLeft()
78− active: priv.focusedAppDelegate !== null
78+ active: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.canBeMaximizedLeftRight
81 GlobalShortcut {
81 GlobalShortcut {
82 id: maximizeWindowRightShortcut
82 id: maximizeWindowRightShortcut
83 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Right
83 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Right
84 onTriggered: priv.focusedAppDelegate.maximizeRight()
84 onTriggered: priv.focusedAppDelegate.maximizeRight()
85− active: priv.focusedAppDelegate !== null
85+ active: priv.focusedAppDelegate !== null && priv.focusedAppDelegate.canBeMaximizedLeftRight
88 GlobalShortcut {
88 GlobalShortcut {
89 id: minimizeRestoreShortcut
89 id: minimizeRestoreShortcut
90 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Down
90 shortcut: Qt.MetaModifier|Qt.ControlModifier|Qt.Key_Down
91− onTriggered: priv.focusedAppDelegate.maximized || priv.focusedAppDelegate.maximizedLeft || priv.focusedAppDelegate.maximizedRight ||
91+ onTriggered: priv.focusedAppDelegate.anyMaximized
92− priv.focusedAppDelegate.maximizedHorizontally || priv.focusedAppDelegate.maximizedVertically
93 ? priv.focusedAppDelegate.restoreFromMaximized() : priv.focusedAppDelegate.minimize()
92 ? priv.focusedAppDelegate.restoreFromMaximized() : priv.focusedAppDelegate.minimize()
94 active: priv.focusedAppDelegate !== null
93 active: priv.focusedAppDelegate !== null
@@ -276,7 +275,7 @@ AbstractStage {
276 value: appDelegate.requestedY -
275 value: appDelegate.requestedY -
277 Math.min(appDelegate.requestedY - PanelState.panelHeight,
276 Math.min(appDelegate.requestedY - PanelState.panelHeight,
278 Math.max(0, priv.virtualKeyboardHeight - (appContainer.height - (appDelegate.requestedY + appDelegate.height))))
277 Math.max(0, priv.virtualKeyboardHeight - (appContainer.height - (appDelegate.requestedY + appDelegate.height))))
279− when: root.oskEnabled && appDelegate.focus && appDelegate.state == "normal"
278+ when: root.oskEnabled && appDelegate.focus && (appDelegate.state == "normal" || appDelegate.state == "restored")
280 && SurfaceManager.inputMethodSurface
279 && SurfaceManager.inputMethodSurface
281 && SurfaceManager.inputMethodSurface.state != Mir.HiddenState
280 && SurfaceManager.inputMethodSurface.state != Mir.HiddenState
282 && SurfaceManager.inputMethodSurface.state != Mir.MinimizedState
281 && SurfaceManager.inputMethodSurface.state != Mir.MinimizedState
@@ -291,7 +290,7 @@ AbstractStage {
291 onShellOrientationAngleChanged: {
290 onShellOrientationAngleChanged: {
292 // at this point decoratedWindow.surfaceOrientationAngle is the old shellOrientationAngle
291 // at this point decoratedWindow.surfaceOrientationAngle is the old shellOrientationAngle
293 if (application && application.rotatesWindowContents) {
292 if (application && application.rotatesWindowContents) {
294− if (state == "normal") {
293+ if (state == "normal" || state == "restored") {
295 var angleDiff = decoratedWindow.surfaceOrientationAngle - shellOrientationAngle;
294 var angleDiff = decoratedWindow.surfaceOrientationAngle - shellOrientationAngle;
296 angleDiff = (360 + angleDiff) % 360;
295 angleDiff = (360 + angleDiff) % 360;
297 if (angleDiff === 90 || angleDiff === 270) {
296 if (angleDiff === 90 || angleDiff === 270) {
@@ -317,14 +316,29 @@ AbstractStage {
317 property int requestedWidth: -1
316 property int requestedWidth: -1
318 property int requestedHeight: -1
317 property int requestedHeight: -1
320− readonly property bool maximized: windowState & WindowStateStorage.WindowStateMaximized
319+ readonly property bool maximized: windowState === WindowStateStorage.WindowStateMaximized
321− readonly property bool maximizedLeft: windowState & WindowStateStorage.WindowStateMaximizedLeft
320+ readonly property bool maximizedLeft: windowState === WindowStateStorage.WindowStateMaximizedLeft
322− readonly property bool maximizedRight: windowState & WindowStateStorage.WindowStateMaximizedRight
321+ readonly property bool maximizedRight: windowState === WindowStateStorage.WindowStateMaximizedRight
323− readonly property bool maximizedHorizontally: windowState & WindowStateStorage.WindowStateMaximizedHorizontally
322+ readonly property bool maximizedHorizontally: windowState === WindowStateStorage.WindowStateMaximizedHorizontally
324− readonly property bool maximizedVertically: windowState & WindowStateStorage.WindowStateMaximizedVertically
323+ readonly property bool maximizedVertically: windowState === WindowStateStorage.WindowStateMaximizedVertically
324+ readonly property bool maximizedTopLeft: windowState === WindowStateStorage.WindowStateMaximizedTopLeft
325+ readonly property bool maximizedTopRight: windowState === WindowStateStorage.WindowStateMaximizedTopRight
326+ readonly property bool maximizedBottomLeft: windowState === WindowStateStorage.WindowStateMaximizedBottomLeft
327+ readonly property bool maximizedBottomRight: windowState === WindowStateStorage.WindowStateMaximizedBottomRight
328+ readonly property bool anyMaximized: maximized || maximizedLeft || maximizedRight || maximizedHorizontally || maximizedVertically ||
329+ maximizedTopLeft || maximizedTopRight || maximizedBottomLeft || maximizedBottomRight
325 readonly property bool minimized: windowState & WindowStateStorage.WindowStateMinimized
331 readonly property bool minimized: windowState & WindowStateStorage.WindowStateMinimized
326 readonly property alias fullscreen: decoratedWindow.fullscreen
332 readonly property alias fullscreen: decoratedWindow.fullscreen
334+ readonly property bool canBeMaximized: canBeMaximizedHorizontally && canBeMaximizedVertically
335+ readonly property bool canBeMaximizedLeftRight: (maximumWidth == 0 || maximumWidth >= appContainer.width/2) &&
336+ (maximumHeight == 0 || maximumHeight >= appContainer.height)
337+ readonly property bool canBeCornerMaximized: (maximumWidth == 0 || maximumWidth >= appContainer.width/2) &&
338+ (maximumHeight == 0 || maximumHeight >= appContainer.height/2)
339+ readonly property bool canBeMaximizedHorizontally: maximumWidth == 0 || maximumWidth >= appContainer.width
340+ readonly property bool canBeMaximizedVertically: maximumHeight == 0 || maximumHeight >= appContainer.height
328 property int windowState: WindowStateStorage.WindowStateNormal
342 property int windowState: WindowStateStorage.WindowStateNormal
329 property bool animationsEnabled: true
343 property bool animationsEnabled: true
330 property alias title: decoratedWindow.title
344 property alias title: decoratedWindow.title
@@ -342,7 +356,7 @@ AbstractStage {
342 if (spread.state == "altTab") {
356 if (spread.state == "altTab") {
343 spread.cancel();
357 spread.cancel();
345− appDelegate.restore();
359+ appDelegate.restore(true /* animated */, appDelegate.windowState);
347 Connections {
361 Connections {
348 target: model.surface
362 target: model.surface
@@ -362,9 +376,6 @@ AbstractStage {
364 onFocusChanged: {
378 onFocusChanged: {
365− if (appRepeater.startingUp)
368 if (focus) {
379 if (focus) {
369 // If we're orphan (!parent) it means this stage is no longer the current one
380 // If we're orphan (!parent) it means this stage is no longer the current one
370 // and will be deleted shortly. So we should no longer have a say over the model
381 // and will be deleted shortly. So we should no longer have a say over the model
@@ -450,28 +461,34 @@ AbstractStage {
450 animationsEnabled = (animated === undefined) || animated;
461 animationsEnabled = (animated === undefined) || animated;
451 windowState = WindowStateStorage.WindowStateMaximizedVertically;
462 windowState = WindowStateStorage.WindowStateMaximizedVertically;
464+ function maximizeTopLeft(animated) {
465+ animationsEnabled = (animated === undefined) || animated;
466+ windowState = WindowStateStorage.WindowStateMaximizedTopLeft;
468+ function maximizeTopRight(animated) {
469+ animationsEnabled = (animated === undefined) || animated;
470+ windowState = WindowStateStorage.WindowStateMaximizedTopRight;
472+ function maximizeBottomLeft(animated) {
473+ animationsEnabled = (animated === undefined) || animated;
474+ windowState = WindowStateStorage.WindowStateMaximizedBottomLeft;
476+ function maximizeBottomRight(animated) {
477+ animationsEnabled = (animated === undefined) || animated;
478+ windowState = WindowStateStorage.WindowStateMaximizedBottomRight;
453 function minimize(animated) {
480 function minimize(animated) {
454 animationsEnabled = (animated === undefined) || animated;
481 animationsEnabled = (animated === undefined) || animated;
455 windowState |= WindowStateStorage.WindowStateMinimized; // add the minimized bit
482 windowState |= WindowStateStorage.WindowStateMinimized; // add the minimized bit
457 function restoreFromMaximized(animated) {
484 function restoreFromMaximized(animated) {
458 animationsEnabled = (animated === undefined) || animated;
485 animationsEnabled = (animated === undefined) || animated;
459− windowState = WindowStateStorage.WindowStateNormal;
486+ windowState = WindowStateStorage.WindowStateRestored;
461− function restore(animated) {
488+ function restore(animated,state) {
462 animationsEnabled = (animated === undefined) || animated;
489 animationsEnabled = (animated === undefined) || animated;
490+ windowState = state || WindowStateStorage.WindowStateRestored;
463 windowState &= ~WindowStateStorage.WindowStateMinimized; // clear the minimized bit
491 windowState &= ~WindowStateStorage.WindowStateMinimized; // clear the minimized bit
466− else if (maximizedLeft)
468− else if (maximizedRight)
470− else if (maximizedHorizontally)
471− maximizeHorizontally();
472− else if (maximizedVertically)
473− maximizeVertically();
475 focus = true;
492 focus = true;
@@ -488,9 +505,12 @@ AbstractStage {
488 duration: UbuntuAnimation.SnapDuration
505 duration: UbuntuAnimation.SnapDuration
508+ property real restoredX
509+ property real restoredY
491 states: [
511 states: [
493− name: "fullscreen"; when: decoratedWindow.fullscreen && !appDelegate.minimized
513+ name: "fullscreen"; when: appDelegate.fullscreen && !appDelegate.minimized
494 PropertyChanges {
514 PropertyChanges {
495 target: appDelegate;
515 target: appDelegate;
496 x: rotation == 0 ? 0 : (parent.width - width) / 2 + (shellOrientationAngle == 90 ? -PanelState.panelHeight : PanelState.panelHeight)
516 x: rotation == 0 ? 0 : (parent.width - width) / 2 + (shellOrientationAngle == 90 ? -PanelState.panelHeight : PanelState.panelHeight)
@@ -509,61 +529,94 @@ AbstractStage {
512− name: "maximized"; when: appDelegate.maximized && !appDelegate.minimized
532+ name: "restored";
533+ when: appDelegate.windowState == WindowStateStorage.WindowStateRestored
513 PropertyChanges {
535 PropertyChanges {
514 target: appDelegate;
536 target: appDelegate;
515− x: root.leftMargin;
537+ requestedX: restoredX;
516− y: 0;
538+ requestedY: restoredY;
517− visuallyMinimized: false;
518− visuallyMaximized: true
542+ name: "maximized"; when: appDelegate.maximized && !appDelegate.minimized
520 PropertyChanges {
543 PropertyChanges {
521− target: decoratedWindow
544+ target: appDelegate;
545+ requestedX: root.leftMargin;
522 requestedWidth: appContainer.width - root.leftMargin;
547 requestedWidth: appContainer.width - root.leftMargin;
523 requestedHeight: appContainer.height;
548 requestedHeight: appContainer.height;
549+ visuallyMinimized: false;
550+ visuallyMaximized: true
527 name: "maximizedLeft"; when: appDelegate.maximizedLeft && !appDelegate.minimized
554 name: "maximizedLeft"; when: appDelegate.maximizedLeft && !appDelegate.minimized
528 PropertyChanges {
555 PropertyChanges {
529 target: appDelegate
556 target: appDelegate
530− x: root.leftMargin
557+ requestedX: root.leftMargin
531− y: PanelState.panelHeight
558+ requestedY: PanelState.panelHeight
534− target: decoratedWindow
535 requestedWidth: (appContainer.width - root.leftMargin)/2
559 requestedWidth: (appContainer.width - root.leftMargin)/2
536 requestedHeight: appContainer.height - PanelState.panelHeight
560 requestedHeight: appContainer.height - PanelState.panelHeight
540 name: "maximizedRight"; when: appDelegate.maximizedRight && !appDelegate.minimized
564 name: "maximizedRight"; when: appDelegate.maximizedRight && !appDelegate.minimized
565+ extend: "maximizedLeft"
541 PropertyChanges {
566 PropertyChanges {
542 target: appDelegate;
567 target: appDelegate;
543− x: (appContainer.width + root.leftMargin)/2
568+ requestedX: (appContainer.width + root.leftMargin)/2
544− y: PanelState.panelHeight
572+ name: "maximizedTopLeft"; when: appDelegate.maximizedTopLeft && !appDelegate.minimized
546 PropertyChanges {
573 PropertyChanges {
547− target: decoratedWindow
574+ target: appDelegate
575+ requestedX: root.leftMargin
576+ requestedY: PanelState.panelHeight
548 requestedWidth: (appContainer.width - root.leftMargin)/2
577 requestedWidth: (appContainer.width - root.leftMargin)/2
549− requestedHeight: appContainer.height - PanelState.panelHeight
578+ requestedHeight: (appContainer.height - PanelState.panelHeight)/2
582+ name: "maximizedTopRight"; when: appDelegate.maximizedTopRight && !appDelegate.minimized
583+ extend: "maximizedTopLeft"
586+ requestedX: (appContainer.width + root.leftMargin)/2
590+ name: "maximizedBottomLeft"; when: appDelegate.maximizedBottomLeft && !appDelegate.minimized
593+ requestedX: root.leftMargin
594+ requestedY: (appContainer.height + PanelState.panelHeight)/2
595+ requestedWidth: (appContainer.width - root.leftMargin)/2
596+ requestedHeight: appContainer.height/2
600+ name: "maximizedBottomRight"; when: appDelegate.maximizedBottomRight && !appDelegate.minimized
601+ extend: "maximizedBottomLeft"
604+ requestedX: (appContainer.width + root.leftMargin)/2
553 name: "maximizedHorizontally"; when: appDelegate.maximizedHorizontally && !appDelegate.minimized
608 name: "maximizedHorizontally"; when: appDelegate.maximizedHorizontally && !appDelegate.minimized
554− PropertyChanges { target: appDelegate; x: root.leftMargin }
609+ PropertyChanges { target: appDelegate; requestedX: root.leftMargin; requestedY: requestedY; requestedWidth: appContainer.width - root.leftMargin }
555− PropertyChanges { target: decoratedWindow; requestedWidth: appContainer.width - root.leftMargin }
558 name: "maximizedVertically"; when: appDelegate.maximizedVertically && !appDelegate.minimized
612 name: "maximizedVertically"; when: appDelegate.maximizedVertically && !appDelegate.minimized
559− PropertyChanges { target: appDelegate; y: PanelState.panelHeight }
613+ PropertyChanges { target: appDelegate; requestedX: requestedX; requestedY: PanelState.panelHeight; requestedHeight: appContainer.height - PanelState.panelHeight }
560− PropertyChanges { target: decoratedWindow; requestedHeight: appContainer.height - PanelState.panelHeight }
563 name: "minimized"; when: appDelegate.minimized
616 name: "minimized"; when: appDelegate.minimized
564 PropertyChanges {
617 PropertyChanges {
565 target: appDelegate;
618 target: appDelegate;
566− x: -appDelegate.width / 2;
619+ requestedX: -appDelegate.width / 2;
567 scale: units.gu(5) / appDelegate.width;
620 scale: units.gu(5) / appDelegate.width;
568 opacity: 0;
621 opacity: 0;
569 visuallyMinimized: true;
622 visuallyMinimized: true;
@@ -573,21 +626,17 @@ AbstractStage {
574 transitions: [
627 transitions: [
575 Transition {
628 Transition {
576− to: "normal"
629+ to: "normal,restored"
577 enabled: appDelegate.animationsEnabled
630 enabled: appDelegate.animationsEnabled
578 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
631 PropertyAction { target: appDelegate; properties: "visuallyMinimized,visuallyMaximized" }
579− UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,requestedWidth,requestedHeight,scale"; duration: UbuntuAnimation.FastDuration }
632+ UbuntuNumberAnimation { target: appDelegate; properties: "requestedX,requestedY,opacity,scale,requestedWidth,requestedHeight" }
580− UbuntuNumberAnimation { target: decoratedWindow; properties: "requestedWidth,requestedHeight"; duration: UbuntuAnimation.FastDuration }
582 Transition {
634 Transition {
583 to: "minimized"
635 to: "minimized"
584 enabled: appDelegate.animationsEnabled
636 enabled: appDelegate.animationsEnabled
585 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
637 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
586 SequentialAnimation {
638 SequentialAnimation {
588− UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,scale"; duration: UbuntuAnimation.FastDuration }
639+ UbuntuNumberAnimation { target: appDelegate; properties: "requestedX,requestedY,opacity,scale,requestedWidth,requestedHeight" }
589− UbuntuNumberAnimation { target: decoratedWindow; properties: "requestedWidth,requestedHeight"; duration: UbuntuAnimation.FastDuration }
591 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
640 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
592 ScriptAction {
641 ScriptAction {
593 script: {
642 script: {
@@ -604,10 +653,8 @@ AbstractStage {
604 enabled: appDelegate.animationsEnabled
653 enabled: appDelegate.animationsEnabled
605 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
654 PropertyAction { target: appDelegate; property: "visuallyMinimized" }
606 SequentialAnimation {
655 SequentialAnimation {
607− ParallelAnimation {
656+ ScriptAction { script: { fakeRectangle.stop(); } }
608− UbuntuNumberAnimation { target: appDelegate; properties: "x,y,opacity,scale"; duration: UbuntuAnimation.FastDuration }
657+ UbuntuNumberAnimation { target: appDelegate; properties: "requestedX,requestedY,opacity,scale,requestedWidth,requestedHeight" }
609− UbuntuNumberAnimation { target: decoratedWindow; properties: "requestedWidth,requestedHeight"; duration: UbuntuAnimation.FastDuration }
611 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
658 PropertyAction { target: appDelegate; property: "visuallyMaximized" }
@@ -674,27 +721,45 @@ AbstractStage {
674 surface: model.surface
721 surface: model.surface
675 active: appDelegate.focus
722 active: appDelegate.focus
676 focus: true
723 focus: true
677− maximizeButtonShown: (maximumWidth == 0 || maximumWidth >= appContainer.width) &&
724+ maximizeButtonShown: appDelegate.canBeMaximized
678− (maximumHeight == 0 || maximumHeight >= appContainer.height)
679 overlayShown: touchControls.overlayShown
725 overlayShown: touchControls.overlayShown
726+ stageWidth: appContainer.width
727+ stageHeight: appContainer.height
681 requestedWidth: appDelegate.requestedWidth
729 requestedWidth: appDelegate.requestedWidth
682 requestedHeight: appDelegate.requestedHeight
730 requestedHeight: appDelegate.requestedHeight
684 onCloseClicked: { appDelegate.close(); }
732 onCloseClicked: { appDelegate.close(); }
685− onMaximizeClicked: appDelegate.maximized || appDelegate.maximizedLeft || appDelegate.maximizedRight
686− || appDelegate.maximizedHorizontally || appDelegate.maximizedVertically
687− ? appDelegate.restoreFromMaximized() : appDelegate.maximize()
733+ onMaximizeClicked: appDelegate.anyMaximized ? appDelegate.restoreFromMaximized() : appDelegate.maximize();
688 onMaximizeHorizontallyClicked: appDelegate.maximizedHorizontally ? appDelegate.restoreFromMaximized() : appDelegate.maximizeHorizontally()
734 onMaximizeHorizontallyClicked: appDelegate.maximizedHorizontally ? appDelegate.restoreFromMaximized() : appDelegate.maximizeHorizontally()
689 onMaximizeVerticallyClicked: appDelegate.maximizedVertically ? appDelegate.restoreFromMaximized() : appDelegate.maximizeVertically()
735 onMaximizeVerticallyClicked: appDelegate.maximizedVertically ? appDelegate.restoreFromMaximized() : appDelegate.maximizeVertically()
690 onMinimizeClicked: appDelegate.minimize()
736 onMinimizeClicked: appDelegate.minimize()
691 onDecorationPressed: { appDelegate.focus = true; }
737 onDecorationPressed: { appDelegate.focus = true; }
739+ onFakeMaximizeAnimationRequested: if (!appDelegate.maximized) fakeRectangle.maximize(progress)
740+ onFakeMaximizeLeftAnimationRequested: if (!appDelegate.maximizedLeft) fakeRectangle.maximizeLeft(progress)
741+ onFakeMaximizeRightAnimationRequested: if (!appDelegate.maximizedRight) fakeRectangle.maximizeRight(progress)
742+ onFakeMaximizeTopLeftAnimationRequested: if (!appDelegate.maximizedTopLeft) fakeRectangle.maximizeTopLeft(progress);
743+ onFakeMaximizeTopRightAnimationRequested: if (!appDelegate.maximizedTopRight) fakeRectangle.maximizeTopRight(progress);
744+ onFakeMaximizeBottomLeftAnimationRequested: if (!appDelegate.maximizedBottomLeft) fakeRectangle.maximizeBottomLeft(progress);
745+ onFakeMaximizeBottomRightAnimationRequested: if (!appDelegate.maximizedBottomRight) fakeRectangle.maximizeBottomRight(progress);
746+ onStopFakeAnimation: fakeRectangle.stop();
694 WindowControlsOverlay {
749 WindowControlsOverlay {
695 id: touchControls
750 id: touchControls
696− anchors.fill: appDelegate
697 target: appDelegate
751 target: appDelegate
752+ stageWidth: appContainer.width
753+ stageHeight: appContainer.height
755+ onFakeMaximizeAnimationRequested: decoratedWindow.fakeMaximizeAnimationRequested(progress)
756+ onFakeMaximizeLeftAnimationRequested: decoratedWindow.fakeMaximizeLeftAnimationRequested(progress)
757+ onFakeMaximizeRightAnimationRequested: decoratedWindow.fakeMaximizeRightAnimationRequested(progress)
758+ onFakeMaximizeTopLeftAnimationRequested: decoratedWindow.fakeMaximizeTopLeftAnimationRequested(progress)
759+ onFakeMaximizeTopRightAnimationRequested: decoratedWindow.fakeMaximizeTopRightAnimationRequested(progress)
760+ onFakeMaximizeBottomLeftAnimationRequested: decoratedWindow.fakeMaximizeBottomLeftAnimationRequested(progress)
761+ onFakeMaximizeBottomRightAnimationRequested: decoratedWindow.fakeMaximizeBottomRightAnimationRequested(progress)
762+ onStopFakeAnimation: decoratedWindow.stopFakeAnimation()
700 WindowedFullscreenPolicy {
765 WindowedFullscreenPolicy {
@@ -706,6 +771,14 @@ AbstractStage {
774+ FakeMaximizeDelegate {
776+ target: priv.focusedAppDelegate
777+ leftMargin: root.leftMargin
778+ appContainerWidth: appContainer.width
779+ appContainerHeight: appContainer.height
709 EdgeBarrier {
782 EdgeBarrier {
710 id: edgeBarrier
783 id: edgeBarrier