[hackers] [st] Be more efficient in blinking. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Fri, 26 Apr 2013 18:58:01 +0200

commit a77b01176a34de741485024e5e36002cff3c1124
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Fri Apr 26 18:55:40 2013 +0200

    Be more efficient in blinking.

diff --git a/st.c b/st.c
index 8065ebe..07940d2 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
+ }
                         }
                 }
         }
Received on Fri Apr 26 2013 - 18:58:01 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 26 2013 - 19:00:19 CEST