… | |
… | |
955 | } |
955 | } |
956 | |
956 | |
957 | if (ActiveMenu->win == None) |
957 | if (ActiveMenu->win == None) |
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 | pix_colors[Color_fg], |
963 | pix_colors[Color_fg], |
964 | pix_colors[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, |
… | |
… | |
982 | GC gc = menubarGC; |
982 | GC gc = menubarGC; |
983 | |
983 | |
984 | if (isSeparator (item->name)) |
984 | if (isSeparator (item->name)) |
985 | { |
985 | { |
986 | rxvt_Draw_Shadow (display->display, ActiveMenu->win, |
986 | rxvt_Draw_Shadow (display->display, ActiveMenu->win, |
987 | topShadowGC, botShadowGC, |
987 | topShadowGC, botShadowGC, |
988 | SHADOW, y + SHADOW + 1, |
988 | SHADOW, y + SHADOW + 1, |
989 | ActiveMenu->w - 2 * SHADOW, 0); |
989 | ActiveMenu->w - 2 * SHADOW, 0); |
990 | h = HEIGHT_SEPARATOR; |
990 | h = HEIGHT_SEPARATOR; |
991 | } |
991 | } |
992 | else |
992 | else |
993 | { |
993 | { |
994 | char *name = item->name; |
994 | char *name = item->name; |
… | |
… | |
2015 | const int y = (menuBar_TotalHeight () - w) / 2; |
2015 | const int y = (menuBar_TotalHeight () - w) / 2; |
2016 | int x = Arrows_x + (5 * Width2Pixel (i)) / 4; |
2016 | int x = Arrows_x + (5 * Width2Pixel (i)) / 4; |
2017 | |
2017 | |
2018 | if (!name || name == Arrows[i].name) |
2018 | if (!name || name == Arrows[i].name) |
2019 | rxvt_Draw_Triangle (display->display, menuBar.win, top, bot, x, y, w, |
2019 | rxvt_Draw_Triangle (display->display, menuBar.win, top, bot, x, y, w, |
2020 | Arrows[i].name); |
2020 | Arrows[i].name); |
2021 | } |
2021 | } |
2022 | XFlush (display->display); |
2022 | XFlush (display->display); |
2023 | } |
2023 | } |
2024 | |
2024 | |
2025 | void |
2025 | void |