rem: gcm = GCForeground|GCGraphicsExposures;  scr->menu_title_pixel[0] = scr->white_pixel; gcv.foreground = scr->white_pixel; gcv.graphics_exposures = False; scr->menu_title_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);
add: scr->menu_title_color[0] = WMRetainColor(scr->white);
context: allocGCs(WScreen *scr){    XGCValues gcv;    XColor color;    unsigned long mtextcolor;    int gcm;    scr->stipple_bitmap =       XCreateBitmapFromData(dpy, scr->w_win, STIPPLE_DATA, STIPPLE_WIDTH,			    STIPPLE_HEIGHT);    gcv.stipple = scr->stipple_bitmap;    gcv.foreground = scr->white_pixel;    gcv.fill_style = FillStippled;    gcv.graphics_exposures = False;    gcm = GCForeground|GCStipple|GCFillStyle|GCGraphicsExposures;    scr->stipple_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);       /* selected icon border GCs */    gcv.function    = GXcopy;    gcv.foreground  = scr->white_pixel;    gcv.background  = scr->black_pixel;    gcv.line_width  = 1;    gcv.line_style  = LineDoubleDash;    gcv.fill_style  = FillSolid;    gcv.dash_offset = 0;    gcv.dashes      = 4;    gcv.graphics_exposures = False;       gcm = GCFunction | GCGraphicsExposures;    gcm |= GCForeground | GCBackground;    gcm |= GCLineWidth | GCLineStyle;    gcm |= GCFillStyle;    gcm |= GCDashOffset | GCDashList;    scr->icon_select_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    gcm = GCForeground|GCGraphicsExposures;        scr->menu_title_pixel[0] = scr->white_pixel;    gcv.foreground = scr->white_pixel;    gcv.graphics_exposures = False;    scr->menu_title_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    scr->mtext_pixel = scr->black_pixel;    mtextcolor = gcv.foreground = scr->black_pixel;    scr->menu_entry_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    /* selected menu entry GC */    gcm = GCForeground|GCBackground|GCGraphicsExposures;    gcv.foreground = scr->white_pixel;    gcv.background = scr->white_pixel;    gcv.graphics_exposures = False;    scr->select_menu_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    /* disabled menu entry GC */    scr->dtext_pixel = scr->black_pixel;    gcm = GCForeground|GCBackground|GCStipple|GCGraphicsExposures;    gcv.stipple = scr->stipple_bitmap;    gcv.graphics_exposures = False;    scr->disabled_menu_entry_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    /* frame GC */    wGetColor(scr, DEF_FRAME_COLOR, &color);    gcv.function = GXxor;    /* this will raise the probability of the XORed color being different     * of the original color in PseudoColor when not all color cells are     * initialized */    if (DefaultVisual(dpy, scr->screen)->class==PseudoColor)    	gcv.plane_mask = (1<<(scr->depth-1))|1;    else	gcv.plane_mask = AllPlanes;    gcv.foreground = color.pixel;    if (gcv.foreground == 0)	gcv.foreground = 1;    gcv.line_width = DEF_FRAME_THICKNESS;    gcv.subwindow_mode = IncludeInferiors;    gcv.graphics_exposures = False;    scr->frame_gc = XCreateGC(dpy, scr->root_win, GCForeground|GCGraphicsExposures			      |GCFunction|GCSubwindowMode|GCLineWidth			      |GCPlaneMask, &gcv);        /* line GC */    gcv.foreground = color.pixel;    if (gcv.foreground == 0)        /* XOR:ing with a zero is not going to be of much use, so           in that case, we somewhat arbitrarily xor with 17 instead. */        gcv.foreground = 17;    gcv.function = GXxor;    gcv.subwindow_mode = IncludeInferiors;    gcv.line_width = 1;    gcv.cap_style = CapRound;    gcv.graphics_exposures = False;    gcm = GCForeground|GCFunction|GCSubwindowMode|GCLineWidth|GCCapStyle	|GCGraphicsExposures;    scr->line_gc = XCreateGC(dpy, scr->root_win, gcm, &gcv);    scr->line_pixel = gcv.foreground;        /* copy GC */    gcv.foreground = scr->white_pixel;    gcv.background = scr->black_pixel;    gcv.graphics_exposures = False;    scr->copy_gc = XCreateGC(dpy, scr->w_win, GCForeground|GCBackground			     |GCGraphicsExposures, &gcv);    /* window title text GC */    gcv.graphics_exposures = False;    scr->window_title_gc = XCreateGC(dpy, scr->w_win,GCGraphicsExposures,&gcv);    /* clip title GC */    scr->clip_title_gc = XCreateGC(dpy, scr->w_win, GCGraphicsExposures, &gcv);    /* move/size display GC */    gcv.graphics_exposures = False;    gcm = GCGraphicsExposures;    scr->info_text_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);        /* misc drawing GC */    gcv.graphics_exposures = False;    gcm = GCGraphicsExposures;    scr->draw_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);    assert (scr->stipple_bitmap!=None);    	    /* mono GC */    scr->mono_gc = XCreateGC(dpy, scr->stipple_bitmap, gcm, &gcv);}