summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-09 09:45:35 +0100
committerBert <ber.t@gmx.com>2011-02-09 09:45:35 +0100
commita5335e8ddde6aa53e6f625f5ce1ffd6f7ec098c5 (patch)
treeb49155721a996a24a19df6967664b980a57dee80
parent7fb7b1f4fc8afb1c921b73583452cfe54b132f90 (diff)
downloadnsxiv-a5335e8ddde6aa53e6f625f5ce1ffd6f7ec098c5.tar.zst
Slightly refactored fungts utf-8 title commit
-rw-r--r--Makefile2
-rw-r--r--window.c19
2 files changed, 10 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 45266f1..3aaef04 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
all: sxiv
-VERSION=0.5
+VERSION=git-20110209
CC?=gcc
PREFIX?=/usr/local
diff --git a/window.c b/window.c
index ed34cd8..ce69b5d 100644
--- a/window.c
+++ b/window.c
@@ -243,16 +243,15 @@ 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));
+
+ 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) {