aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/input_device.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/x11/input_device.c
parente732c5c8954900d06e042dac1b04cda9b93c2051 (diff)
types/wlr_touch: uniformize events name
Diffstat (limited to 'backend/x11/input_device.c')
-rw-r--r--backend/x11/input_device.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c
index dac867f9..d1f5c2c1 100644
--- a/backend/x11/input_device.c
+++ b/backend/x11/input_device.c
@@ -70,8 +70,8 @@ static void send_pointer_position_event(struct wlr_x11_output *output,
static void send_touch_down_event(struct wlr_x11_output *output,
int16_t x, int16_t y, int32_t touch_id, xcb_timestamp_t time) {
- struct wlr_event_touch_down ev = {
- .device = &output->touch.base,
+ struct wlr_touch_down_event ev = {
+ .touch = &output->touch,
.time_msec = time,
.x = (double)x / output->wlr_output.width,
.y = (double)y / output->wlr_output.height,
@@ -83,8 +83,8 @@ static void send_touch_down_event(struct wlr_x11_output *output,
static void send_touch_motion_event(struct wlr_x11_output *output,
int16_t x, int16_t y, int32_t touch_id, xcb_timestamp_t time) {
- struct wlr_event_touch_motion ev = {
- .device = &output->touch.base,
+ struct wlr_touch_motion_event ev = {
+ .touch = &output->touch,
.time_msec = time,
.x = (double)x / output->wlr_output.width,
.y = (double)y / output->wlr_output.height,
@@ -96,8 +96,8 @@ static void send_touch_motion_event(struct wlr_x11_output *output,
static void send_touch_up_event(struct wlr_x11_output *output,
int32_t touch_id, xcb_timestamp_t time) {
- struct wlr_event_touch_up ev = {
- .device = &output->touch.base,
+ struct wlr_touch_up_event ev = {
+ .touch = &output->touch,
.time_msec = time,
.touch_id = touch_id,
};