From d157320dfbce16a328ad6e476b3c72662faf2efd Mon Sep 17 00:00:00 2001 From: kojima Date: Wed, 16 Aug 2000 23:05:19 +0000 Subject: [PATCH] workaround for 8bpp problem with std colormap creation --- util/wmsetbg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/wmsetbg.c b/util/wmsetbg.c index 0f404491..d77b4a8b 100644 --- a/util/wmsetbg.c +++ b/util/wmsetbg.c @@ -1429,6 +1429,12 @@ main(int argc, char **argv) rattr.standard_colormap_mode = RCreateStdColormap; rc = RCreateContext(dpy, scr, &rattr); + + if (!rc) { + rattr.standard_colormap_mode = RIgnoreStdColormap; + rc = RCreateContext(dpy, scr, &rattr); + } + if (!rc) { wfatal("could not initialize wrlib:", RMessageForError(RErrorCode));