summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2012-12-17 18:34:06 +0000
committerokan <okan>2012-12-17 18:34:06 +0000
commitaf13c081080574a036565e2fa7c761b6e6233068 (patch)
tree4611b48a70693b368c7f843d991ed1ea38432609 /xutil.c
parent82e8ec4245f44bd10c0fc5ed27640dafbb7beb44 (diff)
downloadcwm-af13c081080574a036565e2fa7c761b6e6233068.tar.gz
cwm-af13c081080574a036565e2fa7c761b6e6233068.tar.xz
cwm-af13c081080574a036565e2fa7c761b6e6233068.zip
stash the default screen visual and colormap in screen_ctx
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 6e80379..b910906 100644
--- a/xutil.c
+++ b/xutil.c
@@ -422,8 +422,7 @@ xu_getcolor(struct screen_ctx *sc, char *name)
 {
 	XColor	 color, tmp;
 
-	if (!XAllocNamedColor(X_Dpy, DefaultColormap(X_Dpy, sc->which),
-	    name, &color, &tmp)) {
+	if (!XAllocNamedColor(X_Dpy, sc->colormap, name, &color, &tmp)) {
 		warnx("XAllocNamedColor error: '%s'", name);
 		return (0);
 	}