aboutsummaryrefslogtreecommitdiff
path: root/examples/pointer.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 15:43:28 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commite732c5c8954900d06e042dac1b04cda9b93c2051 (patch)
tree1c2ef216763028a024331d0087348fec87d39be2 /examples/pointer.c
parentd1f543a9d87f354e5ad8f942933dba3edb54ffed (diff)
types/wlr_tablet_tool: uniformize events name
Diffstat (limited to 'examples/pointer.c')
-rw-r--r--examples/pointer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/pointer.c b/examples/pointer.c
index d22047de..d1dab770 100644
--- a/examples/pointer.c
+++ b/examples/pointer.c
@@ -217,11 +217,11 @@ static void handle_touch_cancel(struct wl_listener *listener, void *data) {
static void handle_tablet_tool_axis(struct wl_listener *listener, void *data) {
struct sample_state *sample =
wl_container_of(listener, sample, tablet_tool_axis);
- struct wlr_event_tablet_tool_axis *event = data;
+ struct wlr_tablet_tool_axis_event *event = data;
if ((event->updated_axes & WLR_TABLET_TOOL_AXIS_X) &&
(event->updated_axes & WLR_TABLET_TOOL_AXIS_Y)) {
- wlr_cursor_warp_absolute(sample->cursor,
- event->device, event->x, event->y);
+ wlr_cursor_warp_absolute(sample->cursor, &event->tablet->base,
+ event->x, event->y);
}
}