Check whether mask is NULL

This commit is contained in:
Kristian Rietveld 2011-01-31 23:30:56 +01:00
parent 119d29dcb9
commit 73afbc954a

View File

@ -213,7 +213,8 @@ gdk_quartz_device_core_query_state_helper (GdkWindow *window,
toplevel = gdk_window_get_effective_toplevel (window);
*mask = _gdk_quartz_events_get_current_event_mask ();
if (mask)
*mask = _gdk_quartz_events_get_current_event_mask ();
/* Get the y coordinate, needs to be flipped. */
if (window == _gdk_root)