quartz: return modifiers instead of an event mask ...

This commit is contained in:
Kristian Rietveld
2011-07-25 22:26:52 +02:00
parent ceca333309
commit c9f6c7645c
4 changed files with 27 additions and 5 deletions

View File

@ -1836,7 +1836,8 @@ gdk_window_quartz_get_device_state_helper (GdkWindow *window,
toplevel = gdk_window_get_toplevel (window);
*mask = _gdk_quartz_events_get_current_event_mask ();
*mask = _gdk_quartz_events_get_current_keyboard_modifiers () |
_gdk_quartz_events_get_current_mouse_modifiers ();
/* Get the y coordinate, needs to be flipped. */
if (window == _gdk_root)