on xenial help sign in
cleanup
commita539be65ae541d2f2f02dcc9eee40dcd430da8b1 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 9 May 2016, 13:11 (10 years ago) parent3d3fb96
2 files changed+3−3
qml/Stages/DesktopStage.qml+1−1 qml/Stages/WindowControlsOverlay.qml+2−2
qml/Stages/DesktopStage.qml+1−1
@@ -592,7 +592,7 @@ AbstractStage {
592592 screenHeight: appContainer.height
593593 leftMargin: root.leftMargin
594594
595− onPressed: { mouse.accepted = false; appDelegate.focus = true; }
595+ onPressed: { appDelegate.focus = true; }
596596
597597 Component.onCompleted: {
598598 loadWindowState();
qml/Stages/WindowControlsOverlay.qml+2−2
@@ -32,7 +32,7 @@ Item {
3232 anchors.fill: parent
3333
3434 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
35− minimumTouchPoints: 2
35+ minimumTouchPoints: 3
3636 maximumTouchPoints: minimumTouchPoints
3737 recognitionPeriod: 500
3838 //releaseRejectPeriod: 500
@@ -81,9 +81,9 @@ Item {
8181 function handlePressedChanged(pressed, mouseX, mouseY) {
8282 if (pressed) {
8383 var pos = mapToItem(root.target, mouseX, mouseY);
84− print("SAVING POS", pos.x, pos.y)
8584 priv.distanceX = pos.x;
8685 priv.distanceY = pos.y;
86+ print("SAVING POS", priv.distanceX, priv.distanceY)
8787 priv.dragging = true;
8888 } else {
8989 priv.dragging = false;