mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
simplify xftcolor config
This commit is contained in:
parent
9d25218458
commit
0c0551b8bf
7
conf.c
7
conf.c
@ -493,11 +493,8 @@ conf_screen(struct screen_ctx *sc)
|
||||
warnx("XftColorAllocValue: %s", Conf.color[i]);
|
||||
break;
|
||||
}
|
||||
if (XftColorAllocName(X_Dpy, sc->visual, sc->colormap,
|
||||
Conf.color[i], &xc)) {
|
||||
sc->xftcolor[i] = xc;
|
||||
XftColorFree(X_Dpy, sc->visual, sc->colormap, &xc);
|
||||
} else {
|
||||
if (!XftColorAllocName(X_Dpy, sc->visual, sc->colormap,
|
||||
Conf.color[i], &sc->xftcolor[i])) {
|
||||
warnx("XftColorAllocName: %s", Conf.color[i]);
|
||||
XftColorAllocName(X_Dpy, sc->visual, sc->colormap,
|
||||
color_binds[i], &sc->xftcolor[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user