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.
This commit is contained in:
Markus Ongyerth 2019-05-10 08:36:19 +02:00 committed by Simon Ser
parent 57babd2e13
commit 2285e36b0c
6 changed files with 960 additions and 1 deletions

View file

@ -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;