on xenial help sign in
fix immediate grab cursor when just clicking
commitb6424a9f88e9ac5b7c88dd0f8eab16e9cd36c9b8 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 19 Oct 2015, 16:49 (11 years ago) parent529fd58
1 file changed+3−2
qml/Stages/WindowDecoration.qml+3−2
qml/Stages/WindowDecoration.qml+3−2
@@ -45,14 +45,15 @@ MouseArea {
4545 priv.distanceX = pos.x;
4646 priv.distanceY = pos.y;
4747 priv.dragging = true;
48− Mir.cursorName = "grabbing";
4948 } else {
5049 priv.dragging = false;
5150 Mir.cursorName = "";
5251 }
5352 }
54− onMouseXChanged: {
53+
54+ onPositionChanged: {
5555 if (priv.dragging) {
56+ Mir.cursorName = "grabbing";
5657 var pos = mapToItem(root.target.parent, mouseX, mouseY);
5758 root.target.x = pos.x - priv.distanceX;
5859 root.target.y = pos.y - priv.distanceY;