[gtk+/client-side-windows: 170/284] Revert "Convert all pending X events in _gdk_events_queue"
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 170/284] Revert "Convert all pending X events in _gdk_events_queue"
- Date: Thu, 2 Apr 2009 14:14:00 -0400 (EDT)
commit 19cd4d6af8cbc4dc878887221d4530e267d3ab45
Author: Alexander Larsson <alexl redhat com>
Date: Fri Jan 23 20:11:21 2009 +0100
Revert "Convert all pending X events in _gdk_events_queue"
This reverts commit 7cc15ec6ea1504133dfe6febbdb12615550bb966.
Its risky to convert all the events in a go like this, as it
increases the out-of-order issues. It also isn't a full solution
to the motion hint issue as it will only work for the events
we happen to convert. It would be better to use serials to
handle motion hinting.
---
gdk/x11/gdkevents-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdk/x11/gdkevents-x11.c b/gdk/x11/gdkevents-x11.c
index fb99540..41de19c 100644
--- a/gdk/x11/gdkevents-x11.c
+++ b/gdk/x11/gdkevents-x11.c
@@ -2326,7 +2326,7 @@ _gdk_events_queue (GdkDisplay *display)
XEvent xevent;
Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
- while (XPending (xdisplay))
+ while (!_gdk_event_queue_find_first(display) && XPending (xdisplay))
{
XNextEvent (xdisplay, &xevent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]