Be more efficient in blinking.
Christoph Lohmann 20h@r-36.net
1 files changed,
7 insertions(+),
3 deletions(-)
jump to
M
st.c
→
st.c
@@ -3442,9 +3442,13 @@ XFlush(xw.dpy);
if(xev && !FD_ISSET(xfd, &rfd)) xev--; - if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \ - && !blinkset) { - tv = NULL; + if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) { + if(blinkset) { + drawtimeout.tv_usec = 1000 * \ + blinktimeout; + } else { + tv = NULL; + } } } }