mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
types/wlr_pointer: uniformize events name
This commit is contained in:
parent
96ccc50c57
commit
bd6c000d14
10 changed files with 123 additions and 128 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue