chase: use wayland pointer enums rather than wlr ones

https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4575
This commit is contained in:
Consolatis 2024-03-19 01:32:05 +01:00 committed by Johan Malm
parent d8d45dc2cb
commit 5c6e1ed878
6 changed files with 25 additions and 17 deletions

View file

@ -127,7 +127,7 @@ touch_down(struct wl_listener *listener, void *data)
} else {
cursor_emulate_move_absolute(seat, &event->touch->base,
event->x, event->y, event->time_msec);
cursor_emulate_button(seat, BTN_LEFT, WLR_BUTTON_PRESSED,
cursor_emulate_button(seat, BTN_LEFT, WL_POINTER_BUTTON_STATE_PRESSED,
event->time_msec);
}
}
@ -146,8 +146,8 @@ touch_up(struct wl_listener *listener, void *data)
wlr_seat_touch_notify_up(seat->seat, event->time_msec,
event->touch_id);
} else {
cursor_emulate_button(seat, BTN_LEFT, WLR_BUTTON_RELEASED,
event->time_msec);
cursor_emulate_button(seat, BTN_LEFT,
WL_POINTER_BUTTON_STATE_RELEASED, event->time_msec);
}
wl_list_remove(&touch_point->link);
zfree(touch_point);