Call XSync in redraw

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Sat, 15 Sep 2012 12:03:37 +0200

It is necessary call to XSync if you want a good tput flash, because in
other way you can not be sure that white screen will be shown.
---
 st.c |    1 +
 1 file changed, 1 insertion(+)
diff --git a/st.c b/st.c
index b013bca..f4ad23d 100644
--- a/st.c
+++ b/st.c
_AT_@ -2150,6 +2150,7 @@ redraw(void) {
 	struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
 	tfulldirt();
 	draw();
+	XSync(xw.dpy, False); /* necessary for a good tput flash */
 	nanosleep(&tv, NULL);
 }
 
-- 
1.7.10.4
--X1bOJ3K7DJ5YkBrT
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="0003-Remove-timeout-in-the-main-loop.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 16 2012 - 10:36:01 CEST