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