mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
This commit is contained in:
parent
cf66cf906e
commit
d9cfe40aeb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user