From bf7aff28de8299fa7f73d37e1538497a9066f104 Mon Sep 17 00:00:00 2001 From: Carlo Wood Date: Sat, 15 Mar 2025 22:51:43 +0100 Subject: [PATCH] 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. --- types/wlr_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 44b74e926..2ebb0d222 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -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);