mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-07 04:06:14 -05:00
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:
parent
ba7ac3efe5
commit
bf7aff28de
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue