diff options
author | okan | 2012-12-17 18:34:06 +0000 |
---|---|---|
committer | okan | 2012-12-17 18:34:06 +0000 |
commit | 6ff3931470534f22415baa05817ae1bc8aa22d6c (patch) | |
tree | ca07d01bc2fa19bdd96c4326973d9efbf491556a /xutil.c | |
parent | 7bb305fa2e37defb54ef76fc2e83cc6c997ad01b (diff) | |
download | cwm-6ff3931470534f22415baa05817ae1bc8aa22d6c.tar.gz |
stash the default screen visual and colormap in screen_ctx
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 5 |
1 files changed, 2 insertions, 3 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: xutil.c,v 1.50 2012/12/17 02:28:45 okan Exp $ + * $OpenBSD: xutil.c,v 1.51 2012/12/17 18:34:06 okan Exp $ */ #include <sys/param.h> @@ -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); } |