aboutsummaryrefslogtreecommitdiff
path: root/include/backend/wayland.h
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2020-10-18 16:33:03 +0300
committerGitHub <noreply@github.com>2020-10-18 15:33:03 +0200
commitb98522b38fa19c732e0bc420178b76b847460dfe (patch)
tree4df3592961afdbf36bdde4477d43bf2f05733d18 /include/backend/wayland.h
parente410ff8dd4e83ffc6419eb0709693afb25892e47 (diff)
backend/wayland: add touch support to the wayland backend
Goal currently is to get support working for a single output, thus there is only one touch device created. Multi-output support is left for later.
Diffstat (limited to 'include/backend/wayland.h')
-rw-r--r--include/backend/wayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index 9a8a404b..a053aded 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -39,6 +39,7 @@ struct wlr_wl_backend {
struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1;
struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1;
struct wl_seat *seat;
+ struct wl_touch *touch;
struct wl_pointer *pointer;
struct wl_keyboard *keyboard;
struct wlr_wl_pointer *current_pointer;
@@ -112,6 +113,7 @@ 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);
+void create_wl_touch(struct wl_touch *wl_touch, 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);