aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorJohn Collis <john.collis@alliedtelesis.co.nz>2020-09-06 17:53:41 +1200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-18 11:17:11 +0200
commit28b4c822c5c0acec300fdf15c6e3ede9f5e2335d (patch)
treeb2af1c27a64169cfd7a8807c207d07a6c429bd6c /st.c
parentfa253f077f19b3220c7655b81bd91e52f4367803 (diff)
downloadst-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.tar.gz
st-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.tar.bz2
st-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.zip
ST: Add WM_ICON_NAME property support
Also added _NET_WM_ICON_NAME.
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/st.c b/st.c
index 76b7e0d..ae7fa63 100644
--- a/st.c
+++ b/st.c
@@ -1844,6 +1844,7 @@ strhandle(void)
{
char *p = NULL, *dec;
int j, narg, par;
+ static int winname = 0;
term.esc &= ~(ESC_STR_END|ESC_STR);
strparse();
@@ -1853,7 +1854,15 @@ strhandle(void)
case ']': /* OSC -- Operating System Command */
switch (par) {
case 0:
+ if (narg > 1) {
+ xsettitle(strescseq.args[1]);
+ xseticontitle(strescseq.args[1]);
+ }
+ return;
case 1:
+ if (narg > 1)
+ xseticontitle(strescseq.args[1]);
+ return;
case 2:
if (narg > 1)
xsettitle(strescseq.args[1]);