From 2285e36b0c10db31ecaaf1130c24d3170c54583f Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Fri, 10 May 2019 08:36:19 +0200 Subject: Add zwp-tablet-unstable-v2 client support This allows wlroots based compositors to properly use graphic tablets with the wayland backend. This should be a decent quality of life improvement when working on tablet related features. --- include/backend/wayland.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/backend') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index e25aba43..f46e6c75 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -38,6 +38,7 @@ struct wlr_wl_backend { struct wl_pointer *pointer; struct wl_keyboard *keyboard; struct wlr_wl_pointer *current_pointer; + struct zwp_tablet_manager_v2 *tablet_manager; char *seat_name; }; @@ -92,6 +93,8 @@ void update_wl_output_cursor(struct wlr_wl_output *output); struct wlr_wl_pointer *pointer_get_wl(struct wlr_pointer *wlr_pointer); void create_wl_pointer(struct wl_pointer *wl_pointer, struct wlr_wl_output *output); void create_wl_keyboard(struct wl_keyboard *wl_keyboard, struct wlr_wl_backend *wl); +struct wlr_wl_input_device *create_wl_input_device( + struct wlr_wl_backend *backend, enum wlr_input_device_type type); extern const struct wl_seat_listener seat_listener; -- cgit v1.2.3