mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-29 06:40:42 +02:00
Revert "xlib: Remove queued event from _XReadEvents"
This reverts commit e7fc8f405b.
This commit is contained in:
parent
fb3b415cb3
commit
f2aa28e331
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