Krolyxon
Commit 7fb7b1f

Branches

Refs →

nsxiv7fb7b1f

Show correct utf-8 title

Author
fungt
Date
2011-02-09 00:23 +0800
Committer
Bert · 2011-02-09 09:36 +0100
Parent
7bef1de
Commit
7fb7b1f4fc8afb1c921b73583452cfe54b132f90

+10 −0

1 file changed

  1. M window.c +10 −0
M window.c View
@@ -243,6 +243,16 @@ void win_set_title(win_t *win, const char *title) {
243243
244244 XStoreName(win->env.dpy, win->xwin, title);
245245 XSetIconName(win->env.dpy, win->xwin, title);
246+ XChangeProperty( win->env.dpy, win->xwin,
247+ XInternAtom(win->env.dpy, "_NET_WM_NAME", False),
248+ XInternAtom(win->env.dpy, "UTF8_STRING", False),
249+ 8, PropModeReplace, (unsigned char *) title,
250+ strlen(title));
251+ XChangeProperty( win->env.dpy, win->xwin,
252+ XInternAtom(win->env.dpy, "_NET_WM_ICON_NAME", False),
253+ XInternAtom(win->env.dpy, "UTF8_STRING", False),
254+ 8, PropModeReplace, (unsigned char *) title,
255+ strlen(title));
246256 }
247257
248258 void win_set_cursor(win_t *win, win_cur_t cursor) {