Slightly refactored fungts utf-8 title commit
This commit is contained in:
parent
7fb7b1f4fc
commit
a5335e8ddd
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
all: sxiv
|
all: sxiv
|
||||||
|
|
||||||
VERSION=0.5
|
VERSION=git-20110209
|
||||||
|
|
||||||
CC?=gcc
|
CC?=gcc
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
|
|
19
window.c
19
window.c
|
@ -243,16 +243,15 @@ void win_set_title(win_t *win, const char *title) {
|
||||||
|
|
||||||
XStoreName(win->env.dpy, win->xwin, title);
|
XStoreName(win->env.dpy, win->xwin, title);
|
||||||
XSetIconName(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),
|
XChangeProperty(win->env.dpy, win->xwin,
|
||||||
XInternAtom(win->env.dpy, "UTF8_STRING", False),
|
XInternAtom(win->env.dpy, "_NET_WM_NAME", False),
|
||||||
8, PropModeReplace, (unsigned char *) title,
|
XInternAtom(win->env.dpy, "UTF8_STRING", False), 8,
|
||||||
strlen(title));
|
PropModeReplace, (unsigned char *) title, strlen(title));
|
||||||
XChangeProperty( win->env.dpy, win->xwin,
|
XChangeProperty(win->env.dpy, win->xwin,
|
||||||
XInternAtom(win->env.dpy, "_NET_WM_ICON_NAME", False),
|
XInternAtom(win->env.dpy, "_NET_WM_ICON_NAME", False),
|
||||||
XInternAtom(win->env.dpy, "UTF8_STRING", False),
|
XInternAtom(win->env.dpy, "UTF8_STRING", False), 8,
|
||||||
8, PropModeReplace, (unsigned char *) title,
|
PropModeReplace, (unsigned char *) title, strlen(title));
|
||||||
strlen(title));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void win_set_cursor(win_t *win, win_cur_t cursor) {
|
void win_set_cursor(win_t *win, win_cur_t cursor) {
|
||||||
|
|
Loading…
Reference in New Issue