aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2012-09-16 10:46:08 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2012-09-16 10:46:08 +0200
commit9c04eb529f8ec7d10305f929e69e11649a38687d (patch)
tree0dc1f51d9a84bd8d13b3cf298d59f6a2f16f39d8
parent6b42002e1aa1343f445748dfb1678332fe64df5a (diff)
downloadst-9c04eb529f8ec7d10305f929e69e11649a38687d.tar.gz
st-9c04eb529f8ec7d10305f929e69e11649a38687d.tar.bz2
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(+)
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/st.c b/st.c
index b013bca..f4ad23d 100644
--- 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);
}