summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <b.harrington@samsung.com>2015-03-06 22:26:22 -0800
committerBryce Harrington <b.harrington@samsung.com>2015-03-06 23:35:34 -0800
commit3a7d411539975728f90b7d0bb55e3bee2e8600bb (patch)
treeecc48fc5a0cb5f897d2a56109c7905f2dc103952
parentc3605bd3adcae1f12731230a1ea599d15e3c8cad (diff)
Revert "xlib: Remove queued event from _XReadEvents"
-rw-r--r--src/cairo-xlib-surface-shm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c
index 9b4dea5e5..fb40699dc 100644
--- a/src/cairo-xlib-surface-shm.c
+++ b/src/cairo-xlib-surface-shm.c
@@ -670,7 +670,6 @@ _cairo_xlib_shm_surface_flush (void *abstract_surface, unsigned flags)
cairo_xlib_shm_surface_t *shm = abstract_surface;
cairo_xlib_display_t *display;
Display *dpy;
- _XQEvent *qev;
cairo_status_t status;
if (shm->active == 0)
@@ -695,10 +694,6 @@ _cairo_xlib_shm_surface_flush (void *abstract_surface, unsigned flags)
while (! seqno_passed (shm->active, LastKnownRequestProcessed (dpy))) {
LockDisplay(dpy);
_XReadEvents(dpy);
- while (dpy->head) {
- qev = dpy->head;
- _XDeq (dpy, NULL, qev);
- }
UnlockDisplay(dpy);
}