diff options
Diffstat (limited to 'tools/virtual.c')
-rw-r--r-- | tools/virtual.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/virtual.c b/tools/virtual.c index 48fe3478..4da83099 100644 --- a/tools/virtual.c +++ b/tools/virtual.c @@ -1357,9 +1357,7 @@ static int clone_paint(struct clone *c) DisplayString(c->dst.dpy), c->dst.name, (long)c->dst.serial, (long)LastKnownRequestProcessed(c->dst.dpy))); if (c->dst.serial > LastKnownRequestProcessed(c->dst.dpy)) { - while (XPending(c->dst.dpy)) - ; - + XPending(c->dst.dpy); if (c->dst.serial > LastKnownRequestProcessed(c->dst.dpy)) { c->dst.display->skip_clone++; return EAGAIN; |