on xenial help sign in
Set Mir.cursorName to "grabbing" on first mouse press on a window decoration. Don't wait for press+motion.
commitfcfe59036632c025d3e3f508abbd3c98f743cb9b authorAndrea Azzarone <azzaronea@gmail.com> dateMon 29 Aug 2016, 16:50 (10 years ago) parent4de859c
1 file changed+1−1
qml/Stages/WindowDecoration.qml+1−1
qml/Stages/WindowDecoration.qml+1−1
@@ -56,6 +56,7 @@ MouseArea {
5656 priv.distanceX = pos.x;
5757 priv.distanceY = pos.y;
5858 priv.dragging = true;
59+ Mir.cursorName = "grabbing"
5960 } else {
6061 priv.dragging = false;
6162 Mir.cursorName = "";
@@ -64,7 +65,6 @@ MouseArea {
6465
6566 onPositionChanged: {
6667 if (priv.dragging) {
67− Mir.cursorName = "grabbing";
6868 var pos = mapToItem(root.target.parent, mouseX, mouseY);
6969 // Use integer coordinate values to ensure that target is left in a pixel-aligned
7070 // position. Mouse movement could have subpixel precision, yielding a fractional