From 674fe00d8f6f1f7ac44630678d43fa3e07d50a82 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 16 May 2022 23:16:32 +0200 Subject: [PATCH] Update configuration for changes from upstream --- config.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 92b310a..d2dbf76 100644 --- a/config.h +++ b/config.h @@ -43,6 +43,20 @@ static unsigned int tripleclicktimeout = 600; /* alt screens */ int allowaltscreen = 1; +/* allow certain non-interactive (insecure) window operations such as: + setting the clipboard text */ +int allowwindowops = 0; + +/* + * draw latency range in ms - from new content/keypress/etc until drawing. + * within this range, st draws when content stops arriving (idle). mostly it's + * near minlatency, but it waits longer for slow updates to avoid partial draw. + * low minlatency will tear/flicker more, as it can "detect" idle too early. + */ +static double minlatency = 8; +static double maxlatency = 33; + + /* frames per second st should at maximum draw to the screen */ static unsigned int xfps = 120; static unsigned int actionfps = 30; @@ -135,7 +149,7 @@ static const char *colorname[] = { */ unsigned int defaultfg = 7; unsigned int defaultbg = 0; -static unsigned int defaultcs = 256; +unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; /*