wayland: Use the correct union member for axis events
Otherwise we end up overriding other members of the struct (in this case the device pointer) and generate an error.
This commit is contained in:
@ -1139,7 +1139,7 @@ pointer_handle_axis (void *data,
|
||||
event->scroll.direction = GDK_SCROLL_SMOOTH;
|
||||
event->scroll.delta_x = delta_x;
|
||||
event->scroll.delta_y = delta_y;
|
||||
event->button.state = device->modifiers;
|
||||
event->scroll.state = device->modifiers;
|
||||
gdk_event_set_screen (event, display->screen);
|
||||
|
||||
GDK_NOTE (EVENTS,
|
||||
|
||||
Reference in New Issue
Block a user