Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Call XSync in redraw
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
b013bca
..
f4ad23d
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2150,6
+2150,7
@@
redraw(void) {
struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
tfulldirt();
draw();
struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
tfulldirt();
draw();
+ XSync(xw.dpy, False); /* necessary for a good tput flash */
nanosleep(&tv, NULL);
}
nanosleep(&tv, NULL);
}