[gtk+/gtk-3-10] Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
- Date: Fri, 11 Oct 2013 18:06:51 +0000 (UTC)
commit 83e26db7f0210aecd6526d9c7891710283ddda6b
Author: Hamish Mackenzie <Hamish K Mackenzie googlemail com>
Date: Sun Sep 29 05:06:53 2013 +1300
Fix infinite loop in gdkevents.c _gdk_event_queue_find_first
gdk/gdkevents.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c
index 327b543..e770f47 100644
--- a/gdk/gdkevents.c
+++ b/gdk/gdkevents.c
@@ -96,16 +96,16 @@ _gdk_event_queue_find_first (GdkDisplay *display)
{
GdkEventPrivate *event = tmp_list->data;
- if (event->flags & GDK_EVENT_PENDING)
- continue;
-
- if (pending_motion)
- return pending_motion;
+ if (!(event->flags & GDK_EVENT_PENDING))
+ {
+ 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]