@@ -291,8 +291,8 @@ AbstractStage {
291 x: priv.focusedAppDelegate ? priv.focusedAppDelegate.x + units.gu(3) : (normalZ - 1) * units.gu(3)
291 x: priv.focusedAppDelegate ? priv.focusedAppDelegate.x + units.gu(3) : (normalZ - 1) * units.gu(3)
292 y: priv.focusedAppDelegate ? priv.focusedAppDelegate.y + units.gu(3) : normalZ * units.gu(3)
292 y: priv.focusedAppDelegate ? priv.focusedAppDelegate.y + units.gu(3) : normalZ * units.gu(3)
294− width: decoratedWindow.width
294+ width: decoratedWindow.implicitWidth
295− height: decoratedWindow.height
295+ height: decoratedWindow.implicitHeight
296 property int requestedWidth: -1
296 property int requestedWidth: -1
297 property int requestedHeight: -1
297 property int requestedHeight: -1
298 property alias minimumWidth: decoratedWindow.minimumWidth
298 property alias minimumWidth: decoratedWindow.minimumWidth
@@ -486,8 +486,8 @@ AbstractStage {
486 StagedRightEdgeMaths {
486 StagedRightEdgeMaths {
487 id: stagedRightEdgeMaths
487 id: stagedRightEdgeMaths
488 itemIndex: index
488 itemIndex: index
489− sceneWidth: root.width
489+ sceneWidth: appContainer.width - root.leftMargin
490− sceneHeight: root.height
490+ sceneHeight: appContainer.height
491 progress: 0
491 progress: 0
492 targetX: spreadMaths.animatedX
492 targetX: spreadMaths.animatedX
493 targetAngle: spreadMaths.animatedAngle
493 targetAngle: spreadMaths.animatedAngle
@@ -507,7 +507,7 @@ AbstractStage {
510− onXChanged: if (model.application.appId == "unity8-dash") print("dash moved to", x)
510+// onXChanged: if (model.application.appId == "unity8-dash") print("dash moved to", x)
511 onRequestedWidthChanged: if (index == 0) print("requestedWidth", requestedWidth)
511 onRequestedWidthChanged: if (index == 0) print("requestedWidth", requestedWidth)
512 states: [
512 states: [
@@ -517,8 +517,17 @@ AbstractStage {
517 y: spreadMaths.animatedY
517 y: spreadMaths.animatedY
519 angle: spreadMaths.animatedAngle
519 angle: spreadMaths.animatedAngle
520+ height: appDelegate.width
523+ target: decoratedWindow;
524+ showDecoration: false;
525+ height: units.gu(15)
527+ requestedWidth: decoratedWindow.oldRequestedWidth
528+ requestedHeight: decoratedWindow.oldRequestedHeight
529+// resizeSurface: false;
521− PropertyChanges { target: decoratedWindow; showDecoration: false }
522 PropertyChanges { target: inputBlocker; enabled: true }
531 PropertyChanges { target: inputBlocker; enabled: true }
@@ -531,12 +540,17 @@ AbstractStage {
531 target: appDelegate
540 target: appDelegate
532 y: PanelState.panelHeight
541 y: PanelState.panelHeight
533 x: stagedRightEdgeMaths.animatedX
542 x: stagedRightEdgeMaths.animatedX
534− requestedWidth: stagedRightEdgeMaths.animatedWidth
535− requestedHeight: stagedRightEdgeMaths.animatedHeight
536 angle: stagedRightEdgeMaths.animatedAngle
543 angle: stagedRightEdgeMaths.animatedAngle
539− PropertyChanges { target: decoratedWindow; showDecoration: false }
547+ target: decoratedWindow;
548+ showDecoration: false
549+ requestedWidth: stagedRightEdgeMaths.animatedWidth
550+ requestedHeight: stagedRightEdgeMaths.animatedHeight
551+ width: appContainer.width - root.leftMargin
552+ height: appContainer.height
542 name: "staged"; when: root.state == "staged"
556 name: "staged"; when: root.state == "staged"
@@ -549,6 +563,8 @@ AbstractStage {
549 target: decoratedWindow
563 target: decoratedWindow
550 requestedWidth: appContainer.width - root.leftMargin;
564 requestedWidth: appContainer.width - root.leftMargin;
551 requestedHeight: appContainer.height;
565 requestedHeight: appContainer.height;
566+ width: requestedWidth
567+ height: requestedHeight
552 showDecoration: false
568 showDecoration: false
554 PropertyChanges {
570 PropertyChanges {
@@ -747,6 +763,11 @@ AbstractStage {
747 requestedWidth: appDelegate.requestedWidth
763 requestedWidth: appDelegate.requestedWidth
748 requestedHeight: appDelegate.requestedHeight
764 requestedHeight: appDelegate.requestedHeight
766+ property int oldRequestedWidth: -1
767+ property int oldRequestedHeight: -1
768+ onRequestedWidthChanged: oldRequestedWidth = requestedWidth
769+ onRequestedHeightChanged: oldRequestedHeight = requestedHeight
750 onClose: { appDelegate.close(); }
771 onClose: { appDelegate.close(); }
751 onMaximize: appDelegate.maximized || appDelegate.maximizedLeft || appDelegate.maximizedRight
772 onMaximize: appDelegate.maximized || appDelegate.maximizedLeft || appDelegate.maximizedRight
752 ? appDelegate.restoreFromMaximized() : appDelegate.maximize()
773 ? appDelegate.restoreFromMaximized() : appDelegate.maximize()
@@ -765,12 +786,20 @@ AbstractStage {
766 MouseArea {
787 MouseArea {
767 id: inputBlocker
788 id: inputBlocker
789+ anchors.fill: parent
768 enabled: false
790 enabled: false
791+ onPressed: mouse.accepted = true;
769 onClicked: {
792 onClicked: {
770 print("focusing because of inputBlocker click")
793 print("focusing because of inputBlocker click")
771 appDelegate.focus = true
794 appDelegate.focus = true
795+ priv.goneToSpread = false;
799+ anchors.fill: parent