Skip to content

Commit

Permalink
Revert "xlib: Remove queued event from _XReadEvents"
Browse files Browse the repository at this point in the history
This reverts commit e7fc8f4.
  • Loading branch information
Bryce Harrington committed Mar 7, 2015
1 parent c3605bd commit 3a7d411
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cairo-xlib-surface-shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
}

Expand Down

0 comments on commit 3a7d411

Please sign in to comment.