diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-07 13:33:20 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-03-17 17:16:47 +0000 |
commit | d3fb44314cfbe307ac77230074baf5d0fb33c202 (patch) | |
tree | d682ffd8a16c1b6c9da3a685906c4237c6581110 /include/backend | |
parent | e723dd928bb254c3521e1b8e866bad7971587094 (diff) |
backend/wayland: give wlr_touch ownership to wlr_wl_seat
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 0ff85610..e07daa4f 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -10,6 +10,7 @@ #include <wlr/render/wlr_renderer.h> #include <wlr/types/wlr_keyboard.h> #include <wlr/types/wlr_pointer.h> +#include <wlr/types/wlr_touch.h> #include <wlr/render/drm_format_set.h> struct wlr_wl_backend { @@ -128,7 +129,8 @@ struct wlr_wl_seat { struct zwp_pointer_gesture_hold_v1 *gesture_hold; struct zwp_relative_pointer_v1 *relative_pointer; - struct wl_touch *touch; + struct wl_touch *wl_touch; + struct wlr_touch wlr_touch; struct wl_list link; // wlr_wl_backend.seats }; @@ -142,7 +144,6 @@ void init_seat_pointer(struct wlr_wl_seat *seat); void finish_seat_pointer(struct wlr_wl_seat *seat); void create_pointer(struct wlr_wl_seat *seat, struct wlr_wl_output *output); -void create_wl_touch(struct wlr_wl_seat *seat); struct wlr_wl_input_device *create_wl_input_device( struct wlr_wl_seat *seat, enum wlr_input_device_type type); bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl); |