aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>2019-07-15 23:36:21 +0200
committerDrew DeVault <sir@cmpwn.com>2019-07-17 09:23:10 -0400
commit415267ac1386cfbb0ffaa6ccea509ede2c5c3546 (patch)
tree7dcdd0afa383e2dec985c72d097af6ed0bf71e35 /include
parent2d4bc66f11f2ada674158ddc81e2ec184a534865 (diff)
backends/x11: Touch support
Closes #1749
Diffstat (limited to 'include')
-rw-r--r--include/backend/x11.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h
index 67511602..2bc08b21 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -31,12 +31,22 @@ struct wlr_x11_output {
struct wlr_pointer pointer;
struct wlr_input_device pointer_dev;
+ struct wlr_touch touch;
+ struct wlr_input_device touch_dev;
+ struct wl_list touchpoints; // wlr_x11_touchpoint::link
+
struct wl_event_source *frame_timer;
int frame_delay;
bool cursor_hidden;
};
+struct wlr_x11_touchpoint {
+ uint32_t x11_id;
+ int wayland_id;
+ struct wl_list link; // wlr_x11_output::touch_points
+};
+
struct wlr_x11_backend {
struct wlr_backend backend;
struct wl_display *wl_display;
@@ -79,6 +89,7 @@ struct wlr_x11_output *get_x11_output_from_window_id(
extern const struct wlr_keyboard_impl keyboard_impl;
extern const struct wlr_pointer_impl pointer_impl;
+extern const struct wlr_touch_impl touch_impl;
extern const struct wlr_input_device_impl input_device_impl;
void handle_x11_xinput_event(struct wlr_x11_backend *x11,