diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-09 16:01:14 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-03-17 18:16:14 +0000 |
commit | aaf787ee5650e77f0bda4dea8e3ba8325e0e6b39 (patch) | |
tree | 147ec06fc44750d5663a1bdd4505b4bff9da0ee8 /examples/touch.c | |
parent | e732c5c8954900d06e042dac1b04cda9b93c2051 (diff) |
types/wlr_touch: uniformize events name
Diffstat (limited to 'examples/touch.c')
-rw-r--r-- | examples/touch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/touch.c b/examples/touch.c index 5984c500..765b41aa 100644 --- a/examples/touch.c +++ b/examples/touch.c @@ -93,7 +93,7 @@ static void output_frame_notify(struct wl_listener *listener, void *data) { } static void touch_down_notify(struct wl_listener *listener, void *data) { - struct wlr_event_touch_motion *event = data; + struct wlr_touch_motion_event *event = data; struct touch_state *tstate = wl_container_of(listener, tstate, down); struct sample_state *sample = tstate->sample; struct touch_point *point = calloc(1, sizeof(struct touch_point)); @@ -104,7 +104,7 @@ static void touch_down_notify(struct wl_listener *listener, void *data) { } static void touch_up_notify(struct wl_listener *listener, void *data ) { - struct wlr_event_touch_up *event = data; + struct wlr_touch_up_event *event = data; struct touch_state *tstate = wl_container_of(listener, tstate, up); struct sample_state *sample = tstate->sample; struct touch_point *point, *tmp; @@ -117,7 +117,7 @@ static void touch_up_notify(struct wl_listener *listener, void *data ) { } static void touch_motion_notify(struct wl_listener *listener, void *data) { - struct wlr_event_touch_motion *event = data; + struct wlr_touch_motion_event *event = data; struct touch_state *tstate = wl_container_of(listener, tstate, motion); struct sample_state *sample = tstate->sample; struct touch_point *point; |