Fix infinite loop in gdkevents.c _gdk_event_queue_find_first

This commit is contained in:
Hamish Mackenzie 2013-09-29 05:06:53 +13:00 committed by John Ralls
parent cf66cf906e
commit d9cfe40aeb

View File

@ -96,9 +96,8 @@ _gdk_event_queue_find_first (GdkDisplay *display)
{
GdkEventPrivate *event = tmp_list->data;
if (event->flags & GDK_EVENT_PENDING)
continue;
if (!(event->flags & GDK_EVENT_PENDING))
{
if (pending_motion)
return pending_motion;
@ -106,6 +105,7 @@ _gdk_event_queue_find_first (GdkDisplay *display)
pending_motion = tmp_list;
else
return tmp_list;
}
tmp_list = g_list_next (tmp_list);
}