mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
workaround for 8bpp problem with std colormap creation
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user