diff options
author | fungt <sthorde@gmail.com> | 2011-02-09 00:23:36 +0800 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-09 09:36:55 +0100 |
commit | 7fb7b1f4fc8afb1c921b73583452cfe54b132f90 (patch) | |
tree | 4b6f99476de65f6125e152ca54816d50702b09a5 | |
parent | 7bef1de9c2cd527012d3090e24272251619b9b0b (diff) |
Show correct utf-8 title
-rw-r--r-- | window.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -243,6 +243,16 @@ void win_set_title(win_t *win, const char *title) { XStoreName(win->env.dpy, win->xwin, title); XSetIconName(win->env.dpy, win->xwin, title); + XChangeProperty( win->env.dpy, win->xwin, + XInternAtom(win->env.dpy, "_NET_WM_NAME", False), + XInternAtom(win->env.dpy, "UTF8_STRING", False), + 8, PropModeReplace, (unsigned char *) title, + strlen(title)); + XChangeProperty( win->env.dpy, win->xwin, + XInternAtom(win->env.dpy, "_NET_WM_ICON_NAME", False), + XInternAtom(win->env.dpy, "UTF8_STRING", False), + 8, PropModeReplace, (unsigned char *) title, + strlen(title)); } void win_set_cursor(win_t *win, win_cur_t cursor) { |