mirror of
https://github.com/pikami/st.git
synced 2024-11-29 23:35:45 +00:00
Be more efficient in blinking.
This commit is contained in:
parent
1e09726518
commit
a77b01176a
10
st.c
10
st.c
@ -3442,9 +3442,13 @@ run(void) {
|
|||||||
|
|
||||||
if(xev && !FD_ISSET(xfd, &rfd))
|
if(xev && !FD_ISSET(xfd, &rfd))
|
||||||
xev--;
|
xev--;
|
||||||
if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \
|
if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) {
|
||||||
&& !blinkset) {
|
if(blinkset) {
|
||||||
tv = NULL;
|
drawtimeout.tv_usec = 1000 * \
|
||||||
|
blinktimeout;
|
||||||
|
} else {
|
||||||
|
tv = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user