diff options
-rw-r--r-- | gdk/gdkevents.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdk/gdkevents.c b/gdk/gdkevents.c index 327b543824..e770f4777b 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); } |