Commit 9e212cd9 authored by John Ralls's avatar John Ralls

Prevent crash if display->touch_implicit_grabs is NULL.

parent 5294c4f6
......@@ -1257,6 +1257,11 @@ _gdk_display_has_touch_grab (GdkDisplay *display,
{
guint i;
g_return_val_if_fail (display, NULL);
if (!display->touch_implicit_grabs)
return NULL;
for (i = 0; i < display->touch_implicit_grabs->len; i++)
{
GdkTouchGrabInfo *info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment