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

@ -441,8 +441,8 @@ handle_tip(struct wl_listener *listener, void *data)
cursor_emulate_button(tablet->seat,
button,
ev->state == WLR_TABLET_TOOL_TIP_DOWN
? WLR_BUTTON_PRESSED
: WLR_BUTTON_RELEASED,
? WL_POINTER_BUTTON_STATE_PRESSED
: WL_POINTER_BUTTON_STATE_RELEASED,
ev->time_msec);
}
}
@ -500,7 +500,11 @@ handle_button(struct wl_listener *listener, void *data)
} else {
if (button) {
is_down_mouse_emulation = ev->state == WLR_BUTTON_PRESSED;
cursor_emulate_button(tablet->seat, button, ev->state, ev->time_msec);
cursor_emulate_button(tablet->seat, button,
ev->state == WLR_BUTTON_PRESSED
? WL_POINTER_BUTTON_STATE_PRESSED
: WL_POINTER_BUTTON_STATE_RELEASED,
ev->time_msec);
}
}
}