mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
gdk: Relay scroll delta from GDK
This commit is contained in:
parent
1c500f7de9
commit
ab3582be1c
@ -258,6 +258,9 @@ clutter_gdk_handle_event (GdkEvent *gdk_event)
|
|||||||
event->scroll.direction = gdk_event->scroll.direction;
|
event->scroll.direction = gdk_event->scroll.direction;
|
||||||
clutter_event_set_device (event, device);
|
clutter_event_set_device (event, device);
|
||||||
clutter_event_set_source_device (event, source_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;
|
break;
|
||||||
|
|
||||||
case GDK_WINDOW_STATE:
|
case GDK_WINDOW_STATE:
|
||||||
|
@ -68,7 +68,8 @@ struct _ClutterStageGdkClass
|
|||||||
GDK_KEY_RELEASE_MASK | \
|
GDK_KEY_RELEASE_MASK | \
|
||||||
GDK_BUTTON_PRESS_MASK | \
|
GDK_BUTTON_PRESS_MASK | \
|
||||||
GDK_BUTTON_RELEASE_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;
|
GType _clutter_stage_gdk_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user