Be more efficient in blinking.
parent
1e09726518
commit
a77b01176a
8
st.c
8
st.c
|
@ -3442,13 +3442,17 @@ run(void) {
|
|||
|
||||
if(xev && !FD_ISSET(xfd, &rfd))
|
||||
xev--;
|
||||
if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \
|
||||
&& !blinkset) {
|
||||
if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) {
|
||||
if(blinkset) {
|
||||
drawtimeout.tv_usec = 1000 * \
|
||||
blinktimeout;
|
||||
} else {
|
||||
tv = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
usage(void) {
|
||||
|
|
Loading…
Reference in New Issue