cursor-shape-v1: expose tablet tool in event

This allows compositors which use a separate cursor per tablet tool to
support setting tablet tool cursors individually using this protocol.
This commit is contained in:
Isaac Freund 2024-03-02 14:42:24 +01:00
parent 31c842e5ec
commit 22178451f7
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
2 changed files with 35 additions and 4 deletions

View file

@ -41,6 +41,8 @@ enum wlr_cursor_shape_manager_v1_device_type {
struct wlr_cursor_shape_manager_v1_request_set_shape_event {
struct wlr_seat_client *seat_client;
enum wlr_cursor_shape_manager_v1_device_type device_type;
// NULL if device_type is not TABLET_TOOL
struct wlr_tablet_v2_tablet_tool *tablet_tool;
uint32_t serial;
enum wp_cursor_shape_device_v1_shape shape;
};