diff options
author | okan <okan> | 2012-12-17 18:34:06 +0000 |
---|---|---|
committer | okan <okan> | 2012-12-17 18:34:06 +0000 |
commit | af13c081080574a036565e2fa7c761b6e6233068 (patch) | |
tree | 4611b48a70693b368c7f843d991ed1ea38432609 /xutil.c | |
parent | 82e8ec4245f44bd10c0fc5ed27640dafbb7beb44 (diff) | |
download | cwm-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.c | 3 |
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); } |