… | |
… | |
1240 | |
1240 | |
1241 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1241 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1242 | if (menuBar_height ()) |
1242 | if (menuBar_height ()) |
1243 | { |
1243 | { |
1244 | menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0], |
1244 | menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0], |
1245 | window_vt_x, 0, |
1245 | window_vt_x, 0, |
1246 | TermWin_TotalWidth (), |
1246 | TermWin_TotalWidth (), |
1247 | menuBar_TotalHeight (), |
1247 | menuBar_TotalHeight (), |
1248 | 0, |
1248 | 0, |
1249 | PixColors[Color_fg], |
1249 | PixColors[Color_fg], |
1250 | PixColors[Color_scroll]); |
1250 | PixColors[Color_scroll]); |
|
|
1251 | |
1251 | #ifdef DEBUG_X |
1252 | #ifdef DEBUG_X |
1252 | XStoreName (display->display, menuBar.win, "menubar"); |
1253 | XStoreName (display->display, menuBar.win, "menubar"); |
1253 | #endif |
1254 | #endif |
|
|
1255 | |
|
|
1256 | menuBar.drawable = new rxvt_drawable (display, menuBar.win); |
1254 | |
1257 | |
1255 | XDefineCursor (display->display, menuBar.win, |
1258 | XDefineCursor (display->display, menuBar.win, |
1256 | XCreateFontCursor (display->display, XC_left_ptr)); |
1259 | XCreateFontCursor (display->display, XC_left_ptr)); |
1257 | |
1260 | |
1258 | XSelectInput (display->display, menuBar.win, |
1261 | XSelectInput (display->display, menuBar.win, |