Call XSync in redraw - st - simple terminal (HTM) git clone https://git.parazyd.org/st (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 15cc8754c2e272ebac6e86845859816e881da000 (DIR) parent ba1e9daeef0d7e6e52a9889d8f7eb61d74480cf0 (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Sun, 16 Sep 2012 10:46:08 +0200 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(+) Diffstat: M st.c | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- (DIR) diff --git a/st.c b/st.c @@ -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); }