Add state to the scroll event (bug #516757, Paul Davis).

2008-02-16  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkevents-quartz.c (create_scroll_event): Add state
	to the scroll event (bug #516757, Paul Davis).

svn path=/trunk/; revision=19598
This commit is contained in:
Richard Hult 2008-02-16 09:49:52 +00:00 committed by Richard Hult
parent 7d5bcbfcf0
commit ccc8afdbf2
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-02-16 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkevents-quartz.c (create_scroll_event): Add state
to the scroll event (bug #516757, Paul Davis).
2008-02-16 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1439,6 +1439,7 @@ create_scroll_event (GdkWindow *window,
point = [nsevent locationInWindow];
event->scroll.x = point.x;
event->scroll.y = point.y;
event->scroll.state = get_keyboard_modifiers_from_ns_event (nsevent);
convert_window_coordinates_to_root (window, event->scroll.x, event->scroll.y,
&event->scroll.x_root,
&event->scroll.y_root);