on xenial help sign in
cleanup
a539be6Lukáš Tinkl
qml/Stages/DesktopStage.qml+1−1
@@ -592,7 +592,7 @@ AbstractStage {
592 screenHeight: appContainer.height
592 screenHeight: appContainer.height
593 leftMargin: root.leftMargin
593 leftMargin: root.leftMargin
594
594
595− onPressed: { mouse.accepted = false; appDelegate.focus = true; }
595+ onPressed: { appDelegate.focus = true; }
596
596
597 Component.onCompleted: {
597 Component.onCompleted: {
598 loadWindowState();
598 loadWindowState();
qml/Stages/WindowControlsOverlay.qml+2−2
@@ -32,7 +32,7 @@ Item {
32 anchors.fill: parent
32 anchors.fill: parent
33
33
34 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
34 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
35− minimumTouchPoints: 2
35+ minimumTouchPoints: 3
36 maximumTouchPoints: minimumTouchPoints
36 maximumTouchPoints: minimumTouchPoints
37 recognitionPeriod: 500
37 recognitionPeriod: 500
38 //releaseRejectPeriod: 500
38 //releaseRejectPeriod: 500
@@ -81,9 +81,9 @@ Item {
81 function handlePressedChanged(pressed, mouseX, mouseY) {
81 function handlePressedChanged(pressed, mouseX, mouseY) {
82 if (pressed) {
82 if (pressed) {
83 var pos = mapToItem(root.target, mouseX, mouseY);
83 var pos = mapToItem(root.target, mouseX, mouseY);
84− print("SAVING POS", pos.x, pos.y)
85 priv.distanceX = pos.x;
84 priv.distanceX = pos.x;
86 priv.distanceY = pos.y;
85 priv.distanceY = pos.y;
86+ print("SAVING POS", priv.distanceX, priv.distanceY)
87 priv.dragging = true;
87 priv.dragging = true;
88 } else {
88 } else {
89 priv.dragging = false;
89 priv.dragging = false;