@@ -55,8 +55,8 @@ MouseArea {
5555
5656 function updateNormalGeometry() {
5757 if (root.target.state == "normal") {
58− normalX = root.target.x
59− normalY = root.target.y
58+ normalX = root.target.requestedX
59+ normalY = root.target.requestedY
6060 normalWidth = root.target.width
6161 normalHeight = root.target.height
6262 }
@@ -73,14 +73,14 @@ MouseArea {
7373
7474 function loadWindowState() {
7575 var windowGeometry = windowStateStorage.getGeometry(root.windowId,
76− Qt.rect(target.x, target.y, defaultWidth, defaultHeight));
76+ Qt.rect(target.requestedX, target.requestedY, defaultWidth, defaultHeight));
7777
7878 target.requestedWidth = Qt.binding(function() { return Math.min(Math.max(windowGeometry.width, d.minimumWidth), screenWidth - root.leftMargin); });
7979 target.requestedHeight = Qt.binding(function() { return Math.min(Math.max(windowGeometry.height, d.minimumHeight),
8080 root.screenHeight - (target.fullscreen ? 0 : PanelState.panelHeight)); });
81− target.x = Qt.binding(function() { return Math.max(Math.min(windowGeometry.x, root.screenWidth - root.leftMargin - target.requestedWidth),
81+ target.requestedX = Qt.binding(function() { return Math.max(Math.min(windowGeometry.x, root.screenWidth - root.leftMargin - target.requestedWidth),
8282 (target.fullscreen ? 0 : root.leftMargin)); });
83− target.y = Qt.binding(function() { return Math.max(Math.min(windowGeometry.y, root.screenHeight - target.requestedHeight), PanelState.panelHeight); });
83+ target.requestedY = Qt.binding(function() { return Math.max(Math.min(windowGeometry.y, root.screenHeight - target.requestedHeight), PanelState.panelHeight); });
8484
8585 var windowState = windowStateStorage.getState(root.windowId, WindowStateStorage.WindowStateNormal)
8686 switch (windowState) {
@@ -258,8 +258,8 @@ MouseArea {
258258 var pos = mapToItem(root.target.parent, mouseX, mouseY);
259259 d.startMousePosX = pos.x;
260260 d.startMousePosY = pos.y;
261− d.startX = target.x;
262− d.startY = target.y;
261+ d.startX = target.requestedX;
262+ d.startY = target.requestedY;
263263 d.startWidth = target.width;
264264 d.startHeight = target.height;
265265 d.currentWidth = target.width;
@@ -296,7 +296,7 @@ MouseArea {
296296
297297 if (d.leftBorder) {
298298 var newTargetX = d.startX + deltaX;
299− var rightBorderX = target.x + target.width;
299+ var rightBorderX = target.requestedX + target.width;
300300 if (rightBorderX > newTargetX + d.minimumWidth) {
301301 if (rightBorderX < newTargetX + d.maximumWidth) {
302302 target.requestedWidth = rightBorderX - newTargetX;
@@ -322,7 +322,7 @@ MouseArea {
322322
323323 if (d.topBorder) {
324324 var newTargetY = Math.max(d.startY + deltaY, PanelState.panelHeight); // disallow resizing up past Panel
325− var bottomBorderY = target.y + target.height;
325+ var bottomBorderY = target.requestedY + target.height;
326326 if (bottomBorderY > newTargetY + d.minimumHeight) {
327327 if (bottomBorderY < newTargetY + d.maximumHeight) {
328328 target.requestedHeight = bottomBorderY - newTargetY;
@@ -351,13 +351,13 @@ MouseArea {
351351 target: root.target
352352 onWidthChanged: {
353353 if (d.moveLeftBorder) {
354− target.x += d.currentWidth - target.width;
354+ target.requestedX += d.currentWidth - target.width;
355355 }
356356 d.currentWidth = target.width;
357357 }
358358 onHeightChanged: {
359359 if (d.moveTopBorder) {
360− target.y += d.currentHeight - target.height;
360+ target.requestedY += d.currentHeight - target.height;
361361 }
362362 d.currentHeight = target.height;
363363 }