No need to store screen colormap and visual; rather just use the X

macros in the one place they are needed.
This commit is contained in:
okan
2014-02-02 16:29:04 +00:00
parent 5f9c7a21c7
commit ad1b78c6d1
4 changed files with 9 additions and 11 deletions

View File

@@ -162,7 +162,8 @@ x_teardown(void)
TAILQ_FOREACH(sc, &Screenq, entry) {
for (i = 0; i < CWM_COLOR_NITEMS; i++)
XftColorFree(X_Dpy, sc->visual, sc->colormap,
XftColorFree(X_Dpy, DefaultVisual(X_Dpy, sc->which),
DefaultColormap(X_Dpy, sc->which),
&sc->xftcolor[i]);
XftDrawDestroy(sc->xftdraw);
XftFontClose(X_Dpy, sc->xftfont);