summaryrefslogtreecommitdiff
path: root/tools/virtual.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/virtual.c')
-rw-r--r--tools/virtual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 2262e555..5decd896 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -1760,7 +1760,6 @@ static int display_init_damage(struct display *display)
if (display->damage == 0)
return EACCES;
- display->flush = 1;
return 0;
}
@@ -1772,7 +1771,8 @@ static void display_reset_damage(struct display *display)
if (damage) {
XDamageDestroy(display->dpy, display->damage);
display->damage = damage;
- display->flush = 1;
+ XFlush(display->dpy);
+ display->flush = 0;
}
}