mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 00:50:34 +02:00
few more fixes to std colormap code
This commit is contained in:
1 parent
7698ba2f1c
commit
8cd13fe96e
1 file changed
+11
@@ -753,7 +753,18 @@ wScreenInit(int screen_number)
|
||||
rattr.flags |= RC_VisualID;
|
||||
rattr.visualid = wVisualID;
|
||||
}
|
||||
|
||||
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
|
||||
|
||||
if (!scr->rcontext && RErrorCode == RERR_STDCMAPFAIL) {
|
||||
wwarning(RMessageForError(RErrorCode));
|
||||
|
||||
rattr.flags &= ~RC_StandardColormap;
|
||||
rattr.standard_colormap_mode = RUseStdColormap;
|
||||
|
||||
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
|
||||
}
|
||||
|
||||
if (!scr->rcontext) {
|
||||
wwarning(_("could not initialize graphics library context: %s"),
|
||||
RMessageForError(RErrorCode));
|
||||
|
||||
Reference in new issue
Block a user