@@ -1322,8 +1322,6 @@ FocusScope {
13221322 y: spreadMaths.targetY
13231323 z: index
13241324 height: spreadItem.spreadItemHeight
1325− requestedWidth: decoratedWindow.oldRequestedWidth
1326− requestedHeight: decoratedWindow.oldRequestedHeight
13271325 visible: spreadMaths.itemVisible
13281326 }
13291327 PropertyChanges { target: dragArea; enabled: true }
@@ -1343,8 +1341,6 @@ FocusScope {
13431341 y: stagedRightEdgeMaths.animatedY
13441342 z: stagedRightEdgeMaths.animatedZ
13451343 height: stagedRightEdgeMaths.animatedHeight
1346− requestedWidth: decoratedWindow.oldRequestedWidth
1347− requestedHeight: decoratedWindow.oldRequestedHeight
13481344 visible: appDelegate.x < root.width
13491345 }
13501346 PropertyChanges {
@@ -1374,8 +1370,6 @@ FocusScope {
13741370 y: windowedRightEdgeMaths.animatedY
13751371 z: windowedRightEdgeMaths.animatedZ
13761372 height: stagedRightEdgeMaths.animatedHeight
1377− requestedWidth: decoratedWindow.oldRequestedWidth
1378− requestedHeight: decoratedWindow.oldRequestedHeight
13791373 }
13801374 PropertyChanges {
13811375 target: decoratedWindow
@@ -1398,11 +1392,15 @@ FocusScope {
13981392 target: appDelegate
13991393 x: stageMaths.itemX
14001394 y: appDelegate.fullscreen ? 0 : panelState.panelHeight
1401− requestedWidth: appContainer.width
1402− requestedHeight: appDelegate.fullscreen ? appContainer.height : appContainer.height - panelState.panelHeight
14031395 visuallyMaximized: true
14041396 visible: appDelegate.x < root.width
14051397 }
1398+ PropertyChanges {
1399+ target: appDelegate
1400+ requestedWidth: appContainer.width
1401+ requestedHeight: appDelegate.fullscreen ? appContainer.height : appContainer.height - panelState.panelHeight
1402+ restoreEntryValues: false
1403+ }
14061404 PropertyChanges {
14071405 target: decoratedWindow
14081406 hasDecoration: false
@@ -1427,11 +1425,15 @@ FocusScope {
14271425 x: stageMaths.itemX
14281426 y: appDelegate.fullscreen ? 0 : panelState.panelHeight
14291427 z: stageMaths.itemZ
1430− requestedWidth: stageMaths.itemWidth
1431− requestedHeight: appDelegate.fullscreen ? appContainer.height : appContainer.height - panelState.panelHeight
14321428 visuallyMaximized: true
14331429 visible: appDelegate.x < root.width
14341430 }
1431+ PropertyChanges {
1432+ target: appDelegate
1433+ requestedWidth: stageMaths.itemWidth
1434+ requestedHeight: appDelegate.fullscreen ? appContainer.height : appContainer.height - panelState.panelHeight
1435+ restoreEntryValues: false
1436+ }
14351437 PropertyChanges {
14361438 target: decoratedWindow
14371439 hasDecoration: false
@@ -1449,8 +1451,12 @@ FocusScope {
14491451 requestedY: 0;
14501452 visuallyMinimized: false;
14511453 visuallyMaximized: true
1452− requestedWidth: appContainer.width - root.leftMargin;
1453− requestedHeight: appContainer.height;
1454+ }
1455+ PropertyChanges {
1456+ target: appDelegate
1457+ requestedWidth: appContainer.width - root.leftMargin
1458+ requestedHeight: appContainer.height
1459+ restoreEntryValues: false
14541460 }
14551461 PropertyChanges { target: touchControls; enabled: true }
14561462 },
@@ -1460,8 +1466,12 @@ FocusScope {
14601466 target: appDelegate;
14611467 requestedX: 0
14621468 requestedY: 0
1463− requestedWidth: appContainer.width;
1464− requestedHeight: appContainer.height;
1469+ }
1470+ PropertyChanges {
1471+ target: appDelegate
1472+ requestedWidth: appContainer.width
1473+ requestedHeight: appContainer.height
1474+ restoreEntryValues: false
14651475 }
14661476 PropertyChanges { target: decoratedWindow; hasDecoration: false }
14671477 },
@@ -1476,6 +1486,12 @@ FocusScope {
14761486 PropertyChanges { target: touchControls; enabled: true }
14771487 PropertyChanges { target: resizeArea; enabled: true }
14781488 PropertyChanges { target: decoratedWindow; shadowOpacity: .3}
1489+ PropertyChanges {
1490+ target: appDelegate
1491+ requestedWidth: windowedWidth
1492+ requestedHeight: windowedHeight
1493+ restoreEntryValues: false
1494+ }
14791495 },
14801496 State {
14811497 name: "restored";
@@ -1693,6 +1709,7 @@ FocusScope {
16931709 borderThickness: units.gu(2)
16941710 enabled: false
16951711 visible: enabled
1712+ readyToAssesBounds: !appDelegate._constructing
16961713
16971714 onPressed: {
16981715 appDelegate.activate();
@@ -1720,12 +1737,6 @@ FocusScope {
17201737 requestedWidth: appDelegate.requestedWidth
17211738 requestedHeight: appDelegate.requestedHeight
17221739
1723− property int oldRequestedWidth: -1
1724− property int oldRequestedHeight: -1
1725−
1726− onRequestedWidthChanged: oldRequestedWidth = requestedWidth
1727− onRequestedHeightChanged: oldRequestedHeight = requestedHeight
1728−
17291740 onCloseClicked: { appDelegate.close(); }
17301741 onMaximizeClicked: {
17311742 if (appDelegate.canBeMaximized) {