on xenial help sign in
Set Mir.cursorName to "grabbing" on first mouse press on a window decoration. Don't wait for press+motion.
fcfe590Andrea Azzarone
qml/Stages/WindowDecoration.qml+1−1
@@ -56,6 +56,7 @@ MouseArea {
56 priv.distanceX = pos.x;
56 priv.distanceX = pos.x;
57 priv.distanceY = pos.y;
57 priv.distanceY = pos.y;
58 priv.dragging = true;
58 priv.dragging = true;
59+ Mir.cursorName = "grabbing"
59 } else {
60 } else {
60 priv.dragging = false;
61 priv.dragging = false;
61 Mir.cursorName = "";
62 Mir.cursorName = "";
@@ -64,7 +65,6 @@ MouseArea {
64
65
65 onPositionChanged: {
66 onPositionChanged: {
66 if (priv.dragging) {
67 if (priv.dragging) {
67− Mir.cursorName = "grabbing";
68 var pos = mapToItem(root.target.parent, mouseX, mouseY);
68 var pos = mapToItem(root.target.parent, mouseX, mouseY);
69 // Use integer coordinate values to ensure that target is left in a pixel-aligned
69 // Use integer coordinate values to ensure that target is left in a pixel-aligned
70 // position. Mouse movement could have subpixel precision, yielding a fractional
70 // position. Mouse movement could have subpixel precision, yielding a fractional