aboutsummaryrefslogtreecommitdiff
path: root/examples/support/shared.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-28 11:04:40 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-28 11:04:40 -0400
commit324b9d910dc237151fd71c01bef015d0080be191 (patch)
tree22f412fd0aee7f41ffe5282d2834adb0f4aeb1fb /examples/support/shared.c
parenta35a5786b0e40cb1ffa87344d3cb21dff9fd99f4 (diff)
Remove width_mm from wlr_touch events
Diffstat (limited to 'examples/support/shared.c')
-rw-r--r--examples/support/shared.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/support/shared.c b/examples/support/shared.c
index c6460374..02b324f5 100644
--- a/examples/support/shared.c
+++ b/examples/support/shared.c
@@ -167,8 +167,8 @@ static void touch_down_notify(struct wl_listener *listener, void *data) {
struct wlr_event_touch_down *event = data;
struct touch_state *tstate = wl_container_of(listener, tstate, down);
if (tstate->compositor->touch_down_cb) {
- tstate->compositor->touch_down_cb(tstate, event->touch_id,
- event->x_mm, event->y_mm, event->width_mm, event->height_mm);
+ tstate->compositor->touch_down_cb(tstate,
+ event->touch_id, event->x, event->y);
}
}
@@ -176,8 +176,8 @@ static void touch_motion_notify(struct wl_listener *listener, void *data) {
struct wlr_event_touch_motion *event = data;
struct touch_state *tstate = wl_container_of(listener, tstate, motion);
if (tstate->compositor->touch_motion_cb) {
- tstate->compositor->touch_motion_cb(tstate, event->touch_id,
- event->x_mm, event->y_mm, event->width_mm, event->height_mm);
+ tstate->compositor->touch_motion_cb(tstate,
+ event->touch_id, event->x, event->y);
}
}