… | |
… | |
1167 | |
1167 | |
1168 | xterm_seq (XTerm_title, rs[Rs_title], CHAR_ST); |
1168 | xterm_seq (XTerm_title, rs[Rs_title], CHAR_ST); |
1169 | xterm_seq (XTerm_iconName, rs[Rs_iconName], CHAR_ST); |
1169 | xterm_seq (XTerm_iconName, rs[Rs_iconName], CHAR_ST); |
1170 | |
1170 | |
1171 | classHint.res_name = (char *)rs[Rs_name]; |
1171 | classHint.res_name = (char *)rs[Rs_name]; |
1172 | classHint.res_class = (char *)APL_CLASS; |
1172 | classHint.res_class = (char *)RESCLASS; |
1173 | |
1173 | |
1174 | wmHint.flags = (InputHint | StateHint | WindowGroupHint); |
1174 | wmHint.flags = (InputHint | StateHint | WindowGroupHint); |
1175 | wmHint.input = True; |
1175 | wmHint.input = True; |
1176 | wmHint.initial_state = (Options & Opt_iconic ? IconicState |
1176 | wmHint.initial_state = (Options & Opt_iconic ? IconicState |
1177 | : NormalState); |
1177 | : NormalState); |
… | |
… | |
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, |