The check was introduced back when st used gettimeofday.
---
 st.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/st.c b/st.c
index cacb7f6..e10815f 100644
--- a/st.c
+++ b/st.c
@@ -3968,8 +3968,7 @@ run(void) {
                        dodraw = true;
                }
                deltatime = TIMEDIFF(now, last);
-               if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
-                               || deltatime < 0) {
+               if(deltatime > 1000 / (xev ? xfps : actionfps)) {
                        dodraw = true;
                        last = now;
                }
-- 
1.8.4


Reply via email to