Use sanitized variable instead of settings value

This commit is contained in:
Sascha Kruse 2014-06-16 20:42:04 +02:00
parent 39a0826fea
commit 1221ac8c92

2
x.c
View File

@ -965,7 +965,7 @@ static void x_set_wm(Window win)
XStoreName(xctx.dpy, win, title); XStoreName(xctx.dpy, win, title);
XChangeProperty(xctx.dpy, win, _net_wm_title, XChangeProperty(xctx.dpy, win, _net_wm_title,
XInternAtom(xctx.dpy, "UTF8_STRING", False), 8, XInternAtom(xctx.dpy, "UTF8_STRING", False), 8,
PropModeReplace, (unsigned char *) settings.title, strlen(settings.title)); PropModeReplace, (unsigned char *) title, strlen(title));
/* set window class */ /* set window class */
char *class = settings.class != NULL ? settings.class : "Dunst"; char *class = settings.class != NULL ? settings.class : "Dunst";