forked from AuroraMiddleware/gtk
Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
This commit is contained in:
parent
cf66cf906e
commit
d9cfe40aeb
@ -96,16 +96,16 @@ _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;
|
||||
|
||||
if (pending_motion)
|
||||
return pending_motion;
|
||||
|
||||
if (event->event.type == GDK_MOTION_NOTIFY && !display->flushing_events)
|
||||
pending_motion = tmp_list;
|
||||
else
|
||||
return tmp_list;
|
||||
if (event->event.type == GDK_MOTION_NOTIFY && !display->flushing_events)
|
||||
pending_motion = tmp_list;
|
||||
else
|
||||
return tmp_list;
|
||||
}
|
||||
|
||||
tmp_list = g_list_next (tmp_list);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user