… | |
… | |
648 | * Initialize the command connection. |
648 | * Initialize the command connection. |
649 | * This should be called after the X server connection is established. |
649 | * This should be called after the X server connection is established. |
650 | */ |
650 | */ |
651 | |
651 | |
652 | #ifdef META8_OPTION |
652 | #ifdef META8_OPTION |
653 | meta_char = OPTION ((Opt_meta8) ? 0x80 : C0_ESC); |
653 | meta_char = OPTION (Opt_meta8) ? 0x80 : C0_ESC; |
654 | #endif |
654 | #endif |
655 | |
655 | |
656 | get_ourmods (); |
656 | get_ourmods (); |
657 | |
657 | |
658 | if (!OPTION (Opt_scrollTtyOutput)) |
658 | if (!OPTION (Opt_scrollTtyOutput)) |
… | |
… | |
677 | if (menubar_visible ()) |
677 | if (menubar_visible ()) |
678 | { |
678 | { |
679 | priv_modes |= PrivMode_menuBar; |
679 | priv_modes |= PrivMode_menuBar; |
680 | SavedModes |= PrivMode_menuBar; |
680 | SavedModes |= PrivMode_menuBar; |
681 | } |
681 | } |
682 | |
|
|
683 | #ifdef CURSOR_BLINK |
|
|
684 | if (OPTION (Opt_cursorBlink)) |
|
|
685 | (void)gettimeofday (&lastcursorchange, NULL); |
|
|
686 | #endif |
|
|
687 | |
682 | |
688 | run_command (argv); |
683 | run_command (argv); |
689 | } |
684 | } |
690 | |
685 | |
691 | /*----------------------------------------------------------------------*/ |
686 | /*----------------------------------------------------------------------*/ |
… | |
… | |
1079 | |
1074 | |
1080 | /* the vt window */ |
1075 | /* the vt window */ |
1081 | vt = XCreateSimpleWindow (disp, top, |
1076 | vt = XCreateSimpleWindow (disp, top, |
1082 | window_vt_x, |
1077 | window_vt_x, |
1083 | window_vt_y, |
1078 | window_vt_y, |
1084 | TermWin_TotalWidth (), |
1079 | width, |
1085 | TermWin_TotalHeight (), |
1080 | height, |
1086 | 0, |
1081 | 0, |
1087 | pix_colors_focused[Color_fg], |
1082 | pix_colors_focused[Color_fg], |
1088 | pix_colors_focused[Color_bg]); |
1083 | pix_colors_focused[Color_bg]); |
1089 | #ifdef DEBUG_X |
1084 | #ifdef DEBUG_X |
1090 | XStoreName (disp, vt, "vt window"); |
1085 | XStoreName (disp, vt, "vt window"); |
… | |
… | |
1108 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1103 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1109 | if (menuBar_height ()) |
1104 | if (menuBar_height ()) |
1110 | { |
1105 | { |
1111 | menuBar.win = XCreateSimpleWindow (disp, top, |
1106 | menuBar.win = XCreateSimpleWindow (disp, top, |
1112 | window_vt_x, 0, |
1107 | window_vt_x, 0, |
1113 | TermWin_TotalWidth (), |
1108 | width, |
1114 | menuBar_TotalHeight (), |
1109 | menuBar_TotalHeight (), |
1115 | 0, |
1110 | 0, |
1116 | pix_colors_focused[Color_fg], |
1111 | pix_colors_focused[Color_fg], |
1117 | pix_colors_focused[Color_scroll]); |
1112 | pix_colors_focused[Color_scroll]); |
1118 | |
1113 | |