From b803e99634ca48acb240a6e5a67ab768a72159bc Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 2 Feb 2014 16:29:04 +0000 Subject: No need to store screen colormap and visual; rather just use the X macros in the one place they are needed. --- calmwm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calmwm.c') diff --git a/calmwm.c b/calmwm.c index 5f8590e..cfee9ee 100644 --- a/calmwm.c +++ b/calmwm.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.c,v 1.88 2014/02/01 00:25:04 okan Exp $ + * $OpenBSD: calmwm.c,v 1.89 2014/02/02 16:29:04 okan Exp $ */ #include @@ -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); -- cgit v1.2.3-2-gb3c3