Fix a typo.

The struct wlr_tablet_tool_button doesn't exist.
The correct type is struct wlr_tablet_tool_button_event.
The reason this compiles and works is because the unknown struct
is interpreted as a forward declaration and subsequently passed
to something that interprets it as a void* again.
This commit is contained in:
Carlo Wood 2025-03-15 22:51:43 +01:00 committed by Carlo Wood
parent ba7ac3efe5
commit bf7aff28de

View file

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