mirror of
https://github.com/alrayyes/st.git
synced 2024-11-26 21:06:23 +00:00
Style inquisition.
This commit is contained in:
parent
a92a678e25
commit
e0ec2cf984
1 changed files with 2 additions and 2 deletions
4
st.c
4
st.c
|
@ -3182,7 +3182,6 @@ run(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
/* usecs until (next) frame */
|
|
||||||
drawtimeout.tv_sec = 0;
|
drawtimeout.tv_sec = 0;
|
||||||
drawtimeout.tv_usec = (1000/xfps) * 1000;
|
drawtimeout.tv_usec = (1000/xfps) * 1000;
|
||||||
tv = &drawtimeout;
|
tv = &drawtimeout;
|
||||||
|
@ -3193,7 +3192,8 @@ run(void) {
|
||||||
if(FD_ISSET(xfd, &rfd))
|
if(FD_ISSET(xfd, &rfd))
|
||||||
xev = actionfps;
|
xev = actionfps;
|
||||||
|
|
||||||
if(TIMEDIFF(now, last) > (xev ? (1000/xfps) : (1000/actionfps))) {
|
if(TIMEDIFF(now, last) > \
|
||||||
|
(xev ? (1000/xfps) : (1000/actionfps))) {
|
||||||
while(XPending(xw.dpy)) {
|
while(XPending(xw.dpy)) {
|
||||||
XNextEvent(xw.dpy, &ev);
|
XNextEvent(xw.dpy, &ev);
|
||||||
if(XFilterEvent(&ev, None))
|
if(XFilterEvent(&ev, None))
|
||||||
|
|
Loading…
Reference in a new issue