[hackers] [st] Call XSync in redraw || "Roberto E. Vargas Caballero"

From: <hg_AT_suckless.org>
Date: Sun, 16 Sep 2012 12:25:52 +0200 (CEST)

changeset: 304:c1b9fca11b7a
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Sun Sep 16 10:46:08 2012 +0200
files: st.c
description:
Call XSync in redraw
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 -r 33c01f44bef1 -r c1b9fca11b7a st.c
--- a/st.c	Sun Sep 16 10:45:36 2012 +0200
+++ b/st.c	Sun Sep 16 10:46:08 2012 +0200
_AT_@ -2150,6 +2150,7 @@
 	struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
 	tfulldirt();
 	draw();
+	XSync(xw.dpy, False); /* necessary for a good tput flash */
 	nanosleep(&tv, NULL);
 }
 
Received on Sun Sep 16 2012 - 12:25:52 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 16 2012 - 12:36:08 CEST