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:
Rob Bradford 2012-07-16 15:36:40 +01:00
parent a93f246056
commit 21f4b1cb35

View File

@ -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,