diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-02-23 21:20:21 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-02-23 21:20:21 +0100 |
commit | efaf1c2a94ed9193c04c3a67f374d31f988b0e9a (patch) | |
tree | a672835ffdc469cb2f57146a60b685623c267bc0 | |
parent | 1b6c6535c10172facb350f4b8fef442f7f8ddc5a (diff) | |
download | st-patched-efaf1c2a94ed9193c04c3a67f374d31f988b0e9a.tar.bz2 st-patched-efaf1c2a94ed9193c04c3a67f374d31f988b0e9a.tar.xz st-patched-efaf1c2a94ed9193c04c3a67f374d31f988b0e9a.zip |
Add umlaut support for title change.
Thanks Alexander Sedov <alex0player@gmail.com>!
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | st.c | 23 |
2 files changed, 12 insertions, 12 deletions
@@ -18,7 +18,6 @@ bugs | |||
18 | 18 | ||
19 | * fix shift up/down (shift selection in emacs) | 19 | * fix shift up/down (shift selection in emacs) |
20 | * fix selection paste for xatom STRING | 20 | * fix selection paste for xatom STRING |
21 | * fix umlaut handling in settitle | ||
22 | * fix rows and column definition in fixed geometry | 21 | * fix rows and column definition in fixed geometry |
23 | * fix -e handling | 22 | * fix -e handling |
24 | * remove DEC test sequence when appropriate | 23 | * remove DEC test sequence when appropriate |
@@ -1861,12 +1861,9 @@ csireset(void) { | |||
1861 | void | 1861 | void |
1862 | strhandle(void) { | 1862 | strhandle(void) { |
1863 | char *p = NULL; | 1863 | char *p = NULL; |
1864 | int i, j; | 1864 | int i, j, narg; |
1865 | int narg; | 1865 | XTextProperty prop; |
1866 | 1866 | ||
1867 | /* | ||
1868 | * TODO: make this being useful in case of color palette change. | ||
1869 | */ | ||
1870 | strparse(); | 1867 | strparse(); |
1871 | narg = strescseq.narg; | 1868 | narg = strescseq.narg; |
1872 | 1869 | ||
@@ -1876,11 +1873,12 @@ strhandle(void) { | |||
1876 | case 0: | 1873 | case 0: |
1877 | case 1: | 1874 | case 1: |
1878 | case 2: | 1875 | case 2: |
1879 | /* | 1876 | if(narg > 1) { |
1880 | * TODO: Handle special chars in string, like umlauts. | 1877 | p += 2; |
1881 | */ | 1878 | Xutf8TextListToTextProperty(xw.dpy, &p, 1, |
1882 | if(narg > 1) | 1879 | XUTF8StringStyle, &prop); |
1883 | XStoreName(xw.dpy, xw.win, strescseq.args[2]); | 1880 | XSetWMName(xw.dpy, xw.win, &prop); |
1881 | } | ||
1884 | break; | 1882 | break; |
1885 | case 4: /* color set */ | 1883 | case 4: /* color set */ |
1886 | if(narg < 3) | 1884 | if(narg < 3) |
@@ -1902,7 +1900,10 @@ strhandle(void) { | |||
1902 | } | 1900 | } |
1903 | break; | 1901 | break; |
1904 | case 'k': /* old title set compatibility */ | 1902 | case 'k': /* old title set compatibility */ |
1905 | XStoreName(xw.dpy, xw.win, strescseq.buf); | 1903 | p += 1; |
1904 | Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle, | ||
1905 | &prop); | ||
1906 | XSetWMName(xw.dpy, xw.win, &prop); | ||
1906 | break; | 1907 | break; |
1907 | case 'P': /* DSC -- Device Control String */ | 1908 | case 'P': /* DSC -- Device Control String */ |
1908 | case '_': /* APC -- Application Program Command */ | 1909 | case '_': /* APC -- Application Program Command */ |