mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 14:42:29 +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;
|
rattr.standard_colormap_mode = RCreateStdColormap;
|
||||||
|
|
||||||
rc = RCreateContext(dpy, scr, &rattr);
|
rc = RCreateContext(dpy, scr, &rattr);
|
||||||
|
|
||||||
|
if (!rc) {
|
||||||
|
rattr.standard_colormap_mode = RIgnoreStdColormap;
|
||||||
|
rc = RCreateContext(dpy, scr, &rattr);
|
||||||
|
}
|
||||||
|
|
||||||
if (!rc) {
|
if (!rc) {
|
||||||
wfatal("could not initialize wrlib:",
|
wfatal("could not initialize wrlib:",
|
||||||
RMessageForError(RErrorCode));
|
RMessageForError(RErrorCode));
|
||||||
|
|||||||
Reference in New Issue
Block a user