diff options
author | okan | 2014-02-02 16:29:04 +0000 |
---|---|---|
committer | okan | 2014-02-02 16:29:04 +0000 |
commit | b803e99634ca48acb240a6e5a67ab768a72159bc (patch) | |
tree | e14c9365928aec3a36165f787cf763744738dbcb /calmwm.c | |
parent | 7cf90fa84564259d6ef67cd63017a6cdec385f5a (diff) | |
download | cwm-b803e99634ca48acb240a6e5a67ab768a72159bc.tar.gz |
No need to store screen colormap and visual; rather just use the X
macros in the one place they are needed.
Diffstat (limited to 'calmwm.c')
-rw-r--r-- | calmwm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 <sys/param.h> @@ -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); |