mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-19 19:20:50 +01:00
Revert "xlib: Remove queued event from _XReadEvents"
This reverts commit e7fc8f405b.
This commit is contained in:
parent
c3605bd3ad
commit
3a7d411539
1 changed files with 0 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue