summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorfungt <sthorde@gmail.com>2011-02-08 17:23:36 +0100
committerBert <ber.t@gmx.com>2011-02-09 09:36:55 +0100
commit7fb7b1f4fc8afb1c921b73583452cfe54b132f90 (patch)
tree4b6f99476de65f6125e152ca54816d50702b09a5 /window.c
parent7bef1de9c2cd527012d3090e24272251619b9b0b (diff)
downloadnsxiv-7fb7b1f4fc8afb1c921b73583452cfe54b132f90.tar.zst
Show correct utf-8 title
Diffstat (limited to 'window.c')
-rw-r--r--window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/window.c b/window.c
index 23146cd..ed34cd8 100644
--- a/window.c
+++ b/window.c
@@ -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) {