Browse Source

More stable blinking.

master
Christoph Lohmann 11 years ago
parent
commit
8618386de9
1 changed files with 9 additions and 2 deletions
  1. +9
    -2
      st.c

+ 9
- 2
st.c View File

@ -3496,8 +3496,15 @@ run(void) {
xev--;
if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) {
if(blinkset) {
drawtimeout.tv_usec = 1000 * \
blinktimeout;
if(TIMEDIFF(now, lastblink) \
> blinktimeout) {
drawtimeout.tv_usec = 1;
} else {
drawtimeout.tv_usec = (1000 * \
(blinktimeout - \
TIMEDIFF(now,
lastblink)));
}
} else {
tv = NULL;
}


Loading…
Cancel
Save