@@ -445,12 +445,18 @@ AbstractStage {
447 z: normalZ
447 z: normalZ
448− x: requestedX // may be overridden in some states. Do not directly write to this.
448+
449− y: requestedY // may be overridden in some states. Do not directly write to this.
449+ // requestedX/Y/width/height is what we ask the actual surface to be.
450+ // Do not write to those, they will be set by states
451+ // Also do not write to the appWindow's actual x,y,width,height as they
452+ // will be set by states too.
450 property real requestedX: 0
453 property real requestedX: 0
451 property real requestedY: 0
454 property real requestedY: 0
452 property int requestedWidth: -1
455 property int requestedWidth: -1
453 property int requestedHeight: -1
456 property int requestedHeight: -1
458+ // In those are for windowed mode. Those values basically store the window's properties
459+ // when having a floating window. If you want to move/resize a window in normal mode, this is what you want to write to.
454 property int windowedX: priv.focusedAppDelegate ? priv.focusedAppDelegate.x + units.gu(3) : (normalZ - 1) * units.gu(3)
460 property int windowedX: priv.focusedAppDelegate ? priv.focusedAppDelegate.x + units.gu(3) : (normalZ - 1) * units.gu(3)
455 property int windowedY: priv.focusedAppDelegate ? priv.focusedAppDelegate.y + units.gu(3) : normalZ * units.gu(3)
461 property int windowedY: priv.focusedAppDelegate ? priv.focusedAppDelegate.y + units.gu(3) : normalZ * units.gu(3)
456 property int windowedWidth
462 property int windowedWidth