diff options
author | John Collis <john.collis@alliedtelesis.co.nz> | 2020-09-06 17:53:41 +1200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-18 11:17:11 +0200 |
commit | 28b4c822c5c0acec300fdf15c6e3ede9f5e2335d (patch) | |
tree | b2af1c27a64169cfd7a8807c207d07a6c429bd6c /st.c | |
parent | fa253f077f19b3220c7655b81bd91e52f4367803 (diff) | |
download | st-patched-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.tar.bz2 st-patched-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.tar.xz st-patched-28b4c822c5c0acec300fdf15c6e3ede9f5e2335d.zip |
ST: Add WM_ICON_NAME property support
Also added _NET_WM_ICON_NAME.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1844,6 +1844,7 @@ strhandle(void) | |||
1844 | { | 1844 | { |
1845 | char *p = NULL, *dec; | 1845 | char *p = NULL, *dec; |
1846 | int j, narg, par; | 1846 | int j, narg, par; |
1847 | static int winname = 0; | ||
1847 | 1848 | ||
1848 | term.esc &= ~(ESC_STR_END|ESC_STR); | 1849 | term.esc &= ~(ESC_STR_END|ESC_STR); |
1849 | strparse(); | 1850 | strparse(); |
@@ -1853,7 +1854,15 @@ strhandle(void) | |||
1853 | case ']': /* OSC -- Operating System Command */ | 1854 | case ']': /* OSC -- Operating System Command */ |
1854 | switch (par) { | 1855 | switch (par) { |
1855 | case 0: | 1856 | case 0: |
1857 | if (narg > 1) { | ||
1858 | xsettitle(strescseq.args[1]); | ||
1859 | xseticontitle(strescseq.args[1]); | ||
1860 | } | ||
1861 | return; | ||
1856 | case 1: | 1862 | case 1: |
1863 | if (narg > 1) | ||
1864 | xseticontitle(strescseq.args[1]); | ||
1865 | return; | ||
1857 | case 2: | 1866 | case 2: |
1858 | if (narg > 1) | 1867 | if (narg > 1) |
1859 | xsettitle(strescseq.args[1]); | 1868 | xsettitle(strescseq.args[1]); |