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. Pick-to: 6.7 6.6 Change-Id: Ib6b9864d8024ff2919471d6f2d12f9ba8e2e512d Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
This commit is contained in:
parent
8367c68db9
commit
2136cedfff
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user