… | |
… | |
958 | { |
958 | { |
959 | ActiveMenu->win = XCreateSimpleWindow (display->display, TermWin.vt, |
959 | ActiveMenu->win = XCreateSimpleWindow (display->display, TermWin.vt, |
960 | x, ActiveMenu->y, |
960 | x, ActiveMenu->y, |
961 | ActiveMenu->w, ActiveMenu->h, |
961 | ActiveMenu->w, ActiveMenu->h, |
962 | 0, |
962 | 0, |
963 | PixColors[Color_fg], |
963 | pix_colors[Color_fg], |
964 | PixColors[Color_scroll]); |
964 | pix_colors[Color_scroll]); |
965 | ActiveMenu->drawable = new rxvt_drawable (display, ActiveMenu->win); |
965 | ActiveMenu->drawable = new rxvt_drawable (display, ActiveMenu->win); |
966 | XMapWindow (display->display, ActiveMenu->win); |
966 | XMapWindow (display->display, ActiveMenu->win); |
967 | } |
967 | } |
968 | |
968 | |
969 | rxvt_Draw_Shadow (display->display, ActiveMenu->win, |
969 | rxvt_Draw_Shadow (display->display, ActiveMenu->win, |
… | |
… | |
2034 | if (menubarGC == None) |
2034 | if (menubarGC == None) |
2035 | { |
2035 | { |
2036 | /* Create the graphics context */ |
2036 | /* Create the graphics context */ |
2037 | XGCValues gcvalue; |
2037 | XGCValues gcvalue; |
2038 | |
2038 | |
2039 | gcvalue.foreground = (display->depth <= 2 ? PixColors[Color_fg] |
2039 | gcvalue.foreground = (display->depth <= 2 ? pix_colors[Color_fg] |
2040 | : PixColors[Color_Black]); |
2040 | : pix_colors[Color_Black]); |
2041 | menubarGC = XCreateGC (display->display, menuBar.win, |
2041 | menubarGC = XCreateGC (display->display, menuBar.win, |
2042 | GCForeground, &gcvalue); |
2042 | GCForeground, &gcvalue); |
2043 | |
2043 | |
2044 | } |
2044 | } |
2045 | /* make sure the font is correct */ |
2045 | /* make sure the font is correct */ |