wlr_cursor: fix event type in handle_tablet_tool_button

This commit is contained in:
rewine 2026-02-03 21:25:50 +08:00
parent 98196bbd89
commit 7cb4e30bfd
No known key found for this signature in database
GPG key ID: F147D80764BAE71B

View file

@ -956,7 +956,7 @@ static void handle_tablet_tool_axis(struct wl_listener *listener, void *data) {
static void handle_tablet_tool_button(struct wl_listener *listener, static void handle_tablet_tool_button(struct wl_listener *listener,
void *data) { void *data) {
struct wlr_tablet_tool_button *event = data; struct wlr_tablet_tool_button_event *event = data;
struct wlr_cursor_device *device; struct wlr_cursor_device *device;
device = wl_container_of(listener, device, tablet_tool_button); device = wl_container_of(listener, device, tablet_tool_button);
wl_signal_emit_mutable(&device->cursor->events.tablet_tool_button, event); wl_signal_emit_mutable(&device->cursor->events.tablet_tool_button, event);