forked from AuroraMiddleware/gtk
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:
parent
a93f246056
commit
21f4b1cb35
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user