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.
This commit is contained in:
Alexander Larsson 2009-01-23 20:11:21 +01:00 committed by Alexander Larsson
parent 6a0d317866
commit 19cd4d6af8

View File

@ -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);