all repos — st @ c27c731b9f77c1b1c99f3bde737be53996809fcb

st (suckless terminal) config

Monotonic clock cannot jump backwards.

The check was introduced back when st used gettimeofday.
The condition is also modified to increment the accuaracy of the
calculation.
noname@inventati.org noname@inventati.org
commit

c27c731b9f77c1b1c99f3bde737be53996809fcb

parent

6ee56d65906362f3f6ade570da0ce9c28788eaf5

1 files changed, 1 insertions(+), 2 deletions(-)

jump to
M st.cst.c

@@ -4003,8 +4003,7 @@ lastblink = now;

dodraw = 1; } deltatime = TIMEDIFF(now, last); - if(deltatime > (xev? (1000/xfps) : (1000/actionfps)) - || deltatime < 0) { + if(deltatime > 1000 / (xev ? xfps : actionfps)) { dodraw = 1; last = now; }