aboutsummaryrefslogtreecommitdiff
path: root/examples/multi-pointer.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-09 14:52:27 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-17 18:16:14 +0000
commitbd6c000d142fe6a8e893f1cdd2d5eb0b9d2ac7b8 (patch)
treeb29050c0fe2962076b92ffc124cfdc1c3ba8f8f2 /examples/multi-pointer.c
parent96ccc50c5753346e852625fe37418a54386c7804 (diff)
types/wlr_pointer: uniformize events name
Diffstat (limited to 'examples/multi-pointer.c')
-rw-r--r--examples/multi-pointer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/multi-pointer.c b/examples/multi-pointer.c
index 5095cb72..d44df2a1 100644
--- a/examples/multi-pointer.c
+++ b/examples/multi-pointer.c
@@ -109,8 +109,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
static void handle_cursor_motion(struct wl_listener *listener, void *data) {
struct sample_cursor *cursor =
wl_container_of(listener, cursor, cursor_motion);
- struct wlr_event_pointer_motion *event = data;
- wlr_cursor_move(cursor->cursor, event->device, event->delta_x,
+ struct wlr_pointer_motion_event *event = data;
+ wlr_cursor_move(cursor->cursor, &event->pointer->base, event->delta_x,
event->delta_y);
}
@@ -118,8 +118,9 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener,
void *data) {
struct sample_cursor *cursor =
wl_container_of(listener, cursor, cursor_motion_absolute);
- struct wlr_event_pointer_motion_absolute *event = data;
- wlr_cursor_warp_absolute(cursor->cursor, event->device, event->x, event->y);
+ struct wlr_pointer_motion_absolute_event *event = data;
+ wlr_cursor_warp_absolute(cursor->cursor, &event->pointer->base, event->x,
+ event->y);
}
static void cursor_destroy(struct sample_cursor *cursor) {