sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

st-lowlatency-0.8.3.diff (595B)


      1 From 6d7aa31dfde1bd38aa65ef4434930a9fa5b0b5e1 Mon Sep 17 00:00:00 2001
      2 From: Matthias Schoth <mschoth@gmail.com>
      3 Date: Mon, 25 May 2020 02:30:41 +0200
      4 Subject: [PATCH] Trivial patch that reduces input/output latency by
      5  selectively disabling the built in frame rate limiting for KeyPress events.
      6 
      7 ---
      8  x.c | 2 ++
      9  1 file changed, 2 insertions(+)
     10 
     11 diff --git a/x.c b/x.c
     12 index e5f1737..f6b7604 100644
     13 --- a/x.c
     14 +++ b/x.c
     15 @@ -1933,6 +1933,8 @@ run(void)
     16  			dodraw = 1;
     17  			last = now;
     18  		}
     19 +		if (ev.type == KeyPress)
     20 +			dodraw = 1;
     21  
     22  		if (dodraw) {
     23  			while (XPending(xw.dpy)) {
     24 -- 
     25 2.26.2
     26