Add interval timer to XIM updates

Signed-off-by: Joseph Benden <joe@benden.us>
This commit is contained in:
Joseph Benden
2019-05-17 11:49:55 -07:00
parent 6c0c86191c
commit a96c33e81e
3 changed files with 19 additions and 1 deletions

View File

@@ -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 },
};
/*