diff options
author | Christoph Lohmann | 2013-04-26 18:55:40 +0200 |
---|---|---|
committer | Christoph Lohmann | 2013-04-26 18:55:40 +0200 |
commit | a77b01176a34de741485024e5e36002cff3c1124 (patch) | |
tree | 714b5e0c2ae49d9b9f405984ac2359c5b7997840 | |
parent | 1e09726518b84091e80dfaf96632c122f6f446a6 (diff) | |
download | st-a77b01176a34de741485024e5e36002cff3c1124.tar.gz st-a77b01176a34de741485024e5e36002cff3c1124.tar.xz st-a77b01176a34de741485024e5e36002cff3c1124.zip |
Be more efficient in blinking.
-rw-r--r-- | st.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -3442,9 +3442,13 @@ run(void) { if(xev && !FD_ISSET(xfd, &rfd)) xev--; - if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd) \ - && !blinkset) { - tv = NULL; + if(!FD_ISSET(cmdfd, &rfd) && !FD_ISSET(xfd, &rfd)) { + if(blinkset) { + drawtimeout.tv_usec = 1000 * \ + blinktimeout; + } else { + tv = NULL; + } } } } |