gdk: Relay scroll delta from GDK

This commit is contained in:
Emmanuele Bassi 2012-03-19 12:19:26 +00:00
parent 1c500f7de9
commit ab3582be1c
2 changed files with 5 additions and 1 deletions

View File

@ -258,6 +258,9 @@ clutter_gdk_handle_event (GdkEvent *gdk_event)
event->scroll.direction = gdk_event->scroll.direction;
clutter_event_set_device (event, device);
clutter_event_set_source_device (event, source_device);
clutter_event_set_scroll_delta (event,
gdk_event->scroll.delta_x,
gdk_event->scroll.delta_y);
break;
case GDK_WINDOW_STATE:

View File

@ -68,7 +68,8 @@ struct _ClutterStageGdkClass
GDK_KEY_RELEASE_MASK | \
GDK_BUTTON_PRESS_MASK | \
GDK_BUTTON_RELEASE_MASK | \
GDK_POINTER_MOTION_MASK)
GDK_POINTER_MOTION_MASK | \
GDK_SCROLL_MASK)
GType _clutter_stage_gdk_get_type (void) G_GNUC_CONST;