diff options
author | Markus Ongyerth <ongy@ongy.net> | 2019-05-10 08:36:19 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-09-26 19:41:19 +0300 |
commit | 2285e36b0c10db31ecaaf1130c24d3170c54583f (patch) | |
tree | c1f1ba595e5febd5517f5d30533dda6b29afc628 /include | |
parent | 57babd2e13e4d55230d63687aec0107156fd65f4 (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/wayland.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |