summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Uwe Broulik <kde@privat.broulik.de>2023-12-14 12:49:17 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-12-15 00:52:06 +0000
commit133bf15731776e5c55c782f6500313a3c339c815 (patch)
tree056e0c3d609fec5bdd55fc483d1dcb72719a74e9
parent7df7c28e4ae415df1469be9a156c4b1190362163 (diff)
QWaylandCursor: Set appropriate shape for drag cursors
Even if the compositor is free to do whatever during a drag, the client can still set a proper cursor. The codepath without cursor-shape also doesn't special case them. Change-Id: Ib6b9864d8024ff2919471d6f2d12f9ba8e2e512d Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org> (cherry picked from commit c9ade893aeacbe244300217aad51eee2a84940f7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit fa9dec205b29b169dfd6a2897ad3b7d3b26142be)
-rw-r--r--src/client/qwaylandcursor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/qwaylandcursor.cpp b/src/client/qwaylandcursor.cpp
index 09e2e1010..e7464ed8f 100644
--- a/src/client/qwaylandcursor.cpp
+++ b/src/client/qwaylandcursor.cpp
@@ -267,11 +267,11 @@ static QtWayland::wp_cursor_shape_device_v1::shape qtCursorShapeToWaylandShape(Q
case Qt::ClosedHandCursor:
return wp_cursor_shape_device_v1::shape_grabbing;
case Qt::DragMoveCursor:
+ return wp_cursor_shape_device_v1::shape_move;
case Qt::DragCopyCursor:
+ return wp_cursor_shape_device_v1::shape_copy;
case Qt::DragLinkCursor:
- // drags on wayland are different, the compositor knows
- // the drag type and can do something custom
- return wp_cursor_shape_device_v1::shape_grab;
+ return wp_cursor_shape_device_v1::shape_alias;
}
return wp_cursor_shape_device_v1::shape_default;
}