diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-02-15 19:36:20 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-02-15 19:36:20 +0100 |
commit | e0ec2cf984ff8006b99cf4ca8590ceec7113daac (patch) | |
tree | ff9020f76c9ddb533a96a7da91a0fd9e58165a10 | |
parent | a92a678e252aeeb54537dfa7e3f106eac88f8d77 (diff) | |
download | st-patched-e0ec2cf984ff8006b99cf4ca8590ceec7113daac.tar.bz2 st-patched-e0ec2cf984ff8006b99cf4ca8590ceec7113daac.tar.xz st-patched-e0ec2cf984ff8006b99cf4ca8590ceec7113daac.zip |
Style inquisition.
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3182,7 +3182,6 @@ run(void) { | |||
3182 | } | 3182 | } |
3183 | 3183 | ||
3184 | gettimeofday(&now, NULL); | 3184 | gettimeofday(&now, NULL); |
3185 | /* usecs until (next) frame */ | ||
3186 | drawtimeout.tv_sec = 0; | 3185 | drawtimeout.tv_sec = 0; |
3187 | drawtimeout.tv_usec = (1000/xfps) * 1000; | 3186 | drawtimeout.tv_usec = (1000/xfps) * 1000; |
3188 | tv = &drawtimeout; | 3187 | tv = &drawtimeout; |
@@ -3193,7 +3192,8 @@ run(void) { | |||
3193 | if(FD_ISSET(xfd, &rfd)) | 3192 | if(FD_ISSET(xfd, &rfd)) |
3194 | xev = actionfps; | 3193 | xev = actionfps; |
3195 | 3194 | ||
3196 | if(TIMEDIFF(now, last) > (xev ? (1000/xfps) : (1000/actionfps))) { | 3195 | if(TIMEDIFF(now, last) > \ |
3196 | (xev ? (1000/xfps) : (1000/actionfps))) { | ||
3197 | while(XPending(xw.dpy)) { | 3197 | while(XPending(xw.dpy)) { |
3198 | XNextEvent(xw.dpy, &ev); | 3198 | XNextEvent(xw.dpy, &ev); |
3199 | if(XFilterEvent(&ev, None)) | 3199 | if(XFilterEvent(&ev, None)) |