aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/touch.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 16:01:14 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commitaaf787ee5650e77f0bda4dea8e3ba8325e0e6b39 (patch)
tree147ec06fc44750d5663a1bdd4505b4bff9da0ee8 /backend/libinput/touch.c
parente732c5c8954900d06e042dac1b04cda9b93c2051 (diff)
types/wlr_touch: uniformize events name
Diffstat (limited to 'backend/libinput/touch.c')
-rw-r--r--backend/libinput/touch.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/backend/libinput/touch.c b/backend/libinput/touch.c
index fba3d568..1475a03e 100644
--- a/backend/libinput/touch.c
+++ b/backend/libinput/touch.c
@@ -32,8 +32,8 @@ void handle_touch_down(struct libinput_event *event,
struct wlr_touch *touch) {
struct libinput_event_touch *tevent =
libinput_event_get_touch_event(event);
- struct wlr_event_touch_down wlr_event = { 0 };
- wlr_event.device = &touch->base;
+ struct wlr_touch_down_event wlr_event = { 0 };
+ wlr_event.touch = touch;
wlr_event.time_msec =
usec_to_msec(libinput_event_touch_get_time_usec(tevent));
wlr_event.touch_id = libinput_event_touch_get_seat_slot(tevent);
@@ -46,8 +46,8 @@ void handle_touch_up(struct libinput_event *event,
struct wlr_touch *touch) {
struct libinput_event_touch *tevent =
libinput_event_get_touch_event(event);
- struct wlr_event_touch_up wlr_event = { 0 };
- wlr_event.device = &touch->base;
+ struct wlr_touch_up_event wlr_event = { 0 };
+ wlr_event.touch = touch;
wlr_event.time_msec =
usec_to_msec(libinput_event_touch_get_time_usec(tevent));
wlr_event.touch_id = libinput_event_touch_get_seat_slot(tevent);
@@ -58,8 +58,8 @@ void handle_touch_motion(struct libinput_event *event,
struct wlr_touch *touch) {
struct libinput_event_touch *tevent =
libinput_event_get_touch_event(event);
- struct wlr_event_touch_motion wlr_event = { 0 };
- wlr_event.device = &touch->base;
+ struct wlr_touch_motion_event wlr_event = { 0 };
+ wlr_event.touch = touch;
wlr_event.time_msec =
usec_to_msec(libinput_event_touch_get_time_usec(tevent));
wlr_event.touch_id = libinput_event_touch_get_seat_slot(tevent);
@@ -72,8 +72,8 @@ void handle_touch_cancel(struct libinput_event *event,
struct wlr_touch *touch) {
struct libinput_event_touch *tevent =
libinput_event_get_touch_event(event);
- struct wlr_event_touch_cancel wlr_event = { 0 };
- wlr_event.device = &touch->base;
+ struct wlr_touch_cancel_event wlr_event = { 0 };
+ wlr_event.touch = touch;
wlr_event.time_msec =
usec_to_msec(libinput_event_touch_get_time_usec(tevent));
wlr_event.touch_id = libinput_event_touch_get_seat_slot(tevent);