Be more efficient in blinking.

dev
Christoph Lohmann 2013-04-26 18:55:40 +02:00
parent 1e09726518
commit a77b01176a
1 changed files with 7 additions and 3 deletions

10
st.c
View File

@ -3442,9 +3442,13 @@ run(void) {
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;
}
}
}
}