summaryrefslogtreecommitdiff
path: root/tools/virtual.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtual.c')
-rw-r--r--tools/virtual.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index cba247bf..8b8d5111 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2987,7 +2987,8 @@ int main(int argc, char **argv)
if (reconfigure && context_update(&ctx))
display_reset_damage(ctx.display);
- XPending(ctx.record);
+ while (XPending(ctx.record)) /* discard all implicit events */
+ XNextEvent(ctx.record, &e);
if (ctx.timer_active && read(ctx.timer, &count, sizeof(count)) > 0) {
struct clone *clone;