mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Be more efficient in blinking.
This commit is contained in:
parent
1e09726518
commit
a77b01176a
1 changed files with 7 additions and 3 deletions
8
st.c
8
st.c
|
@ -3442,12 +3442,16 @@ 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
|
||||
|
|
Loading…
Reference in a new issue