Krolyxon
Commit a5335e8

Branches

Refs →

nsxiva5335e8

Slightly refactored fungts utf-8 title commit

Author
Bert
Date
2011-02-09 09:45 +0100
Parent
7fb7b1f
Commit
a5335e8ddde6aa53e6f625f5ce1ffd6f7ec098c5

+10 −11

2 files changed

  1. M Makefile +1 −1
  2. M window.c +9 −10
M Makefile View
@@ -1,6 +1,6 @@
11 all: sxiv
22
3−VERSION=0.5
3+VERSION=git-20110209
44
55 CC?=gcc
66 PREFIX?=/usr/local
M window.c View
@@ -243,16 +243,15 @@ 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));
246+
247+ XChangeProperty(win->env.dpy, win->xwin,
248+ XInternAtom(win->env.dpy, "_NET_WM_NAME", False),
249+ XInternAtom(win->env.dpy, "UTF8_STRING", False), 8,
250+ PropModeReplace, (unsigned char *) title, 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), 8,
254+ PropModeReplace, (unsigned char *) title, strlen(title));
256255 }
257256
258257 void win_set_cursor(win_t *win, win_cur_t cursor) {