projects
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba1e9da
)
Call XSync in redraw
author
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Sun, 16 Sep 2012 08:46:08 +0000
(10:46 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Sun, 16 Sep 2012 08:46:08 +0000
(10:46 +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(+)
st.c
patch
|
blob
|
history
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();
+ XSync(xw.dpy, False); /* necessary for a good tput flash */
nanosleep(&tv, NULL);
}