on xenial help sign in
make the WindowControlsOverlay work on requestedX/Y too
commitf74606d4e69f33da1b30f4b3760936bc433b0596 authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 23 Jun 2016, 13:40 (10 years ago) parent2fa34a6
1 file changed+2−2
qml/Stages/WindowControlsOverlay.qml+2−2
qml/Stages/WindowControlsOverlay.qml+2−2
@@ -94,8 +94,8 @@ Item {
9494 function handlePositionChanged(mouseX, mouseY) {
9595 if (priv.dragging) {
9696 var pos = mapToItem(root.target.parent, mouseX, mouseY);
97− root.target.x = Math.round(pos.x - priv.distanceX);
98− root.target.y = Math.round(Math.max(pos.y - priv.distanceY, PanelState.panelHeight));
97+ root.target.requestedX = Math.round(pos.x - priv.distanceX);
98+ root.target.requestedY = Math.round(Math.max(pos.y - priv.distanceY, PanelState.panelHeight));
9999 }
100100 }
101101 }