From a96c33e81ef8918743b47511a0488be0d585460a Mon Sep 17 00:00:00 2001 From: Joseph Benden Date: Fri, 17 May 2019 11:49:55 -0700 Subject: Add interval timer to XIM updates Signed-off-by: Joseph Benden --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index e68878c..c0c2ff9 100644 --- a/config.h +++ b/config.h @@ -51,6 +51,13 @@ static unsigned int actionfps = 30; */ static unsigned int blinktimeout = 800; +/* + * interval (in milliseconds) between each successive call to ximspot. This + * improves terminal performance while not reducing functionality to those + * whom need XIM support. + */ +int ximspot_update_interval = 1000; + /* * thickness of underline and bar cursors */ @@ -184,6 +191,7 @@ ResourcePref resources[] = { { "cwscale", FLOAT, &cwscale }, { "chscale", FLOAT, &chscale }, { "alpha", FLOAT, &alpha }, + { "ximspot_update_interval", INTEGER, &ximspot_update_interval }, }; /* -- cgit v1.2.3