From a5335e8ddde6aa53e6f625f5ce1ffd6f7ec098c5 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 9 Feb 2011 09:45:35 +0100 Subject: Slightly refactored fungts utf-8 title commit --- window.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'window.c') 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) { -- cgit v1.2.3-54-g00ecf