summaryrefslogtreecommitdiff
path: root/x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11.c')
-rw-r--r--x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11.c b/x11.c
index 39961ee..faff022 100644
--- a/x11.c
+++ b/x11.c
@@ -208,11 +208,11 @@ textwidth(Rune *str, int len)
return gi.xOff;
}
-static void
+static int
sync()
{
XCopyArea(d, pbuf, win, gc, 0, 0, w, h, 0, 0);
- XFlush(d);
+ return XPending(d); // calls XFlush()
}
static int