aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-04-26 18:55:40 +0200
committerChristoph Lohmann <20h@r-36.net>2013-04-26 18:55:40 +0200
commita77b01176a34de741485024e5e36002cff3c1124 (patch)
tree714b5e0c2ae49d9b9f405984ac2359c5b7997840 /st.c
parent1e09726518b84091e80dfaf96632c122f6f446a6 (diff)
downloadst-a77b01176a34de741485024e5e36002cff3c1124.tar.gz
st-a77b01176a34de741485024e5e36002cff3c1124.zip
Be more efficient in blinking.
Diffstat (limited to 'st.c')
-rw-r--r--st.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/st.c b/st.c
index 8065ebe..07940d2 100644
--- a/st.c
+++ b/st.c
@@ -3442,9 +3442,13 @@ run(void) {
3442 3442
3443 if(xev && !FD_ISSET(xfd, &rfd)) 3443 if(xev && !FD_ISSET(xfd, &rfd))
3444 xev--; 3444 xev--;
3445 if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \ 3445 if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) {
3446 && !blinkset) { 3446 if(blinkset) {
3447 tv = NULL; 3447 drawtimeout.tv_usec = 1000 * \
3448 blinktimeout;
3449 } else {
3450 tv = NULL;
3451 }
3448 } 3452 }
3449 } 3453 }
3450 } 3454 }