forked from AuroraMiddleware/gtk
Check whether mask is NULL
This commit is contained in:
parent
119d29dcb9
commit
73afbc954a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user