mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
few more fixes to std colormap code
This commit is contained in:
11
src/screen.c
11
src/screen.c
@@ -753,7 +753,18 @@ wScreenInit(int screen_number)
|
|||||||
rattr.flags |= RC_VisualID;
|
rattr.flags |= RC_VisualID;
|
||||||
rattr.visualid = wVisualID;
|
rattr.visualid = wVisualID;
|
||||||
}
|
}
|
||||||
|
|
||||||
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
|
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) {
|
if (!scr->rcontext) {
|
||||||
wwarning(_("could not initialize graphics library context: %s"),
|
wwarning(_("could not initialize graphics library context: %s"),
|
||||||
RMessageForError(RErrorCode));
|
RMessageForError(RErrorCode));
|
||||||
|
|||||||
Reference in New Issue
Block a user