From eeb58886a5b9d7460f81a1e3216692b5dc3a6341 Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 20 Jan 2011 16:32:16 +0100 Subject: Fixed initial window title --- window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 223e4c6..3bc35f9 100644 --- a/window.c +++ b/window.c @@ -72,9 +72,12 @@ void win_open(win_t *win) { XSelectInput(e->dpy, win->xwin, StructureNotifyMask | ExposureMask | KeyPressMask); + XStoreName(e->dpy, win->xwin, "sxiv"); + XSetIconName(e->dpy, win->xwin, "Sxiv"); + if ((classhint = XAllocClassHint())) { - classhint->res_name = "sxvi"; - classhint->res_class = "sxvi"; + classhint->res_name = "sxiv"; + classhint->res_class = "sxiv"; XSetClassHint(e->dpy, win->xwin, classhint); XFree(classhint); } -- cgit v1.2.3