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

@ -116,7 +116,11 @@ handle_button(struct wl_listener *listener, void *data)
} else {
uint32_t button = tablet_get_mapped_button(ev->button);
if (button) {
cursor_emulate_button(pad->seat, button, ev->state, ev->time_msec);
cursor_emulate_button(pad->seat, button,
ev->state == WLR_BUTTON_PRESSED
? WL_POINTER_BUTTON_STATE_PRESSED
: WL_POINTER_BUTTON_STATE_RELEASED,
ev->time_msec);
}
}
}