ST: Add WM_ICON_NAME property support

Also added _NET_WM_ICON_NAME.
This commit is contained in:
John Collis
2020-09-06 17:53:41 +12:00
committed by Hiltjo Posthuma
parent fa253f077f
commit 28b4c822c5
3 changed files with 25 additions and 1 deletions

9
st.c
View File

@ -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]);