commit 0278a198b578adf95023a783427f076c06091869
parent e152eecd542138d384add0b4abdc8a9070ae6e7c
Author: regexghost <dev@regexghost.com>
Date: Thu, 20 Aug 2026 22:00:43 +0100
added option to stop title from being changed
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h
@@ -15,6 +15,9 @@ static char *font2[] = {
static int borderpx = 2;
+static int allowchangingtitle = 0;
+static int titlechanged = 0;
+
/*
* What program is execed by st depends of these precedence rules:
* 1: program passed with -e
@@ -60,7 +63,7 @@ int allowwindowops = 0;
* 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 = 12;
+static double minlatency = 8;
static double maxlatency = 33;
/*
diff --git a/x.c b/x.c
@@ -1784,6 +1784,9 @@ xseticontitle(char *p)
void
xsettitle(char *p)
{
+ if (titlechanged && !allowchangingtitle) return;
+ titlechanged = 1;
+
XTextProperty prop;
DEFAULT(p, opt_title);