Fixed initial window title

This commit is contained in:
Bert 2011-01-20 16:32:16 +01:00
parent a732e75d8a
commit eeb58886a5

View file

@ -72,9 +72,12 @@ void win_open(win_t *win) {
XSelectInput(e->dpy, win->xwin, XSelectInput(e->dpy, win->xwin,
StructureNotifyMask | ExposureMask | KeyPressMask); StructureNotifyMask | ExposureMask | KeyPressMask);
XStoreName(e->dpy, win->xwin, "sxiv");
XSetIconName(e->dpy, win->xwin, "Sxiv");
if ((classhint = XAllocClassHint())) { if ((classhint = XAllocClassHint())) {
classhint->res_name = "sxvi"; classhint->res_name = "sxiv";
classhint->res_class = "sxvi"; classhint->res_class = "sxiv";
XSetClassHint(e->dpy, win->xwin, classhint); XSetClassHint(e->dpy, win->xwin, classhint);
XFree(classhint); XFree(classhint);
} }