pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e09726
)
Be more efficient in blinking.
author
Christoph Lohmann
<20h@r-36.net>
Fri, 26 Apr 2013 16:55:40 +0000
(18:55 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Fri, 26 Apr 2013 16:55:40 +0000
(18:55 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8065ebe
..
07940d2
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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;
+ }
}
}
}