… | |
… | |
394 | |
394 | |
395 | #ifndef NO_BRIGHTCOLOR |
395 | #ifndef NO_BRIGHTCOLOR |
396 | colorfgbg = DEFAULT_RSTYLE; |
396 | colorfgbg = DEFAULT_RSTYLE; |
397 | #endif |
397 | #endif |
398 | |
398 | |
399 | #if defined (HOTKEY_CTRL) || defined (HOTKEY_META) |
|
|
400 | ks_bigfont = XK_greater; |
|
|
401 | ks_smallfont = XK_less; |
|
|
402 | #endif |
|
|
403 | |
|
|
404 | refresh_limit = 1; |
399 | refresh_limit = 1; |
405 | refresh_type = SLOW_REFRESH; |
400 | refresh_type = SLOW_REFRESH; |
406 | prev_nrow = prev_ncol = 0; |
401 | prev_nrow = prev_ncol = 0; |
407 | #ifdef MULTICHAR_SET |
|
|
408 | # ifdef MULTICHAR_ENCODING |
|
|
409 | encoding_method = MULTICHAR_ENCODING; |
|
|
410 | # endif |
|
|
411 | multichar_decode = rxvt_euc2jis; |
|
|
412 | #endif |
|
|
413 | |
402 | |
414 | oldcursor.row = oldcursor.col = -1; |
403 | oldcursor.row = oldcursor.col = -1; |
415 | #ifdef XPM_BACKGROUND |
404 | #ifdef XPM_BACKGROUND |
416 | /* bgPixmap.w = bgPixmap.h = 0; */ |
405 | /* bgPixmap.w = bgPixmap.h = 0; */ |
417 | bgPixmap.x = bgPixmap.y = 50; |
406 | bgPixmap.x = bgPixmap.y = 50; |
… | |
… | |
597 | rs[Rs_print_pipe] = PRINTPIPE; |
586 | rs[Rs_print_pipe] = PRINTPIPE; |
598 | #endif |
587 | #endif |
599 | |
588 | |
600 | if (!rs[Rs_cutchars]) |
589 | if (!rs[Rs_cutchars]) |
601 | rs[Rs_cutchars] = CUTCHARS; |
590 | rs[Rs_cutchars] = CUTCHARS; |
602 | |
|
|
603 | #ifdef ACS_ASCII |
|
|
604 | if (!rs[Rs_acs_chars]) |
|
|
605 | rs[Rs_acs_chars] = ACS_CHARS; |
|
|
606 | if ((i = STRLEN (rs[Rs_acs_chars])) < 0x20) |
|
|
607 | { |
|
|
608 | val = rxvt_realloc ((void *)rs[Rs_acs_chars], 0x20); |
|
|
609 | for (; i < 0x20; ) |
|
|
610 | val[i] = ' '; |
|
|
611 | rs[Rs_acs_chars] = val; |
|
|
612 | } |
|
|
613 | #endif |
|
|
614 | |
591 | |
615 | #ifndef NO_BACKSPACE_KEY |
592 | #ifndef NO_BACKSPACE_KEY |
616 | if (!rs[Rs_backspace_key]) |
593 | if (!rs[Rs_backspace_key]) |
617 | # ifdef DEFAULT_BACKSPACE |
594 | # ifdef DEFAULT_BACKSPACE |
618 | key_backspace = DEFAULT_BACKSPACE; |
595 | key_backspace = DEFAULT_BACKSPACE; |
… | |
… | |
1173 | |
1150 | |
1174 | xterm_seq (XTerm_title, rs[Rs_title], CHAR_ST); |
1151 | xterm_seq (XTerm_title, rs[Rs_title], CHAR_ST); |
1175 | xterm_seq (XTerm_iconName, rs[Rs_iconName], CHAR_ST); |
1152 | xterm_seq (XTerm_iconName, rs[Rs_iconName], CHAR_ST); |
1176 | |
1153 | |
1177 | classHint.res_name = (char *)rs[Rs_name]; |
1154 | classHint.res_name = (char *)rs[Rs_name]; |
1178 | classHint.res_class = (char *)APL_CLASS; |
1155 | classHint.res_class = (char *)RESCLASS; |
1179 | |
1156 | |
1180 | wmHint.flags = (InputHint | StateHint | WindowGroupHint); |
1157 | wmHint.flags = (InputHint | StateHint | WindowGroupHint); |
1181 | wmHint.input = True; |
1158 | wmHint.input = True; |
1182 | wmHint.initial_state = (Options & Opt_iconic ? IconicState |
1159 | wmHint.initial_state = (Options & Opt_iconic ? IconicState |
1183 | : NormalState); |
1160 | : NormalState); |
… | |
… | |
1246 | |
1223 | |
1247 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1224 | #if defined(MENUBAR) && (MENUBAR_MAX > 1) |
1248 | if (menuBar_height ()) |
1225 | if (menuBar_height ()) |
1249 | { |
1226 | { |
1250 | menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0], |
1227 | menuBar.win = XCreateSimpleWindow (display->display, TermWin.parent[0], |
1251 | window_vt_x, 0, |
1228 | window_vt_x, 0, |
1252 | TermWin_TotalWidth (), |
1229 | TermWin_TotalWidth (), |
1253 | menuBar_TotalHeight (), |
1230 | menuBar_TotalHeight (), |
1254 | 0, |
1231 | 0, |
1255 | PixColors[Color_fg], |
1232 | PixColors[Color_fg], |
1256 | PixColors[Color_scroll]); |
1233 | PixColors[Color_scroll]); |
|
|
1234 | |
1257 | #ifdef DEBUG_X |
1235 | #ifdef DEBUG_X |
1258 | XStoreName (display->display, menuBar.win, "menubar"); |
1236 | XStoreName (display->display, menuBar.win, "menubar"); |
1259 | #endif |
1237 | #endif |
1260 | |
1238 | |
|
|
1239 | menuBar.drawable = new rxvt_drawable (display, menuBar.win); |
|
|
1240 | |
1261 | XDefineCursor (display->display, menuBar.win, pointer_leftptr); |
1241 | XDefineCursor (display->display, menuBar.win, |
|
|
1242 | XCreateFontCursor (display->display, XC_left_ptr)); |
1262 | |
1243 | |
1263 | XSelectInput (display->display, menuBar.win, |
1244 | XSelectInput (display->display, menuBar.win, |
1264 | (ExposureMask | ButtonPressMask | ButtonReleaseMask |
1245 | (ExposureMask | ButtonPressMask | ButtonReleaseMask |
1265 | | Button1MotionMask)); |
1246 | | Button1MotionMask)); |
1266 | menubar_ev.start (display, menuBar.win); |
1247 | menubar_ev.start (display, menuBar.win); |
… | |
… | |
1289 | gcvalue.graphics_exposures = 1; |
1270 | gcvalue.graphics_exposures = 1; |
1290 | TermWin.gc = XCreateGC (display->display, TermWin.vt, |
1271 | TermWin.gc = XCreateGC (display->display, TermWin.vt, |
1291 | GCForeground | GCBackground |
1272 | GCForeground | GCBackground |
1292 | | GCGraphicsExposures, &gcvalue); |
1273 | | GCGraphicsExposures, &gcvalue); |
1293 | |
1274 | |
|
|
1275 | TermWin.drawable = new rxvt_drawable (display, TermWin.vt); |
|
|
1276 | |
1294 | #if defined(MENUBAR) || defined(RXVT_SCROLLBAR) |
1277 | #if defined(MENUBAR) || defined(RXVT_SCROLLBAR) |
1295 | gcvalue.foreground = PixColors[Color_topShadow]; |
1278 | gcvalue.foreground = PixColors[Color_topShadow]; |
1296 | topShadowGC = XCreateGC (display->display, TermWin.vt, |
1279 | topShadowGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue); |
1297 | GCForeground, &gcvalue); |
|
|
1298 | gcvalue.foreground = PixColors[Color_bottomShadow]; |
1280 | gcvalue.foreground = PixColors[Color_bottomShadow]; |
1299 | botShadowGC = XCreateGC (display->display, TermWin.vt, |
1281 | botShadowGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue); |
1300 | GCForeground, &gcvalue); |
|
|
1301 | gcvalue.foreground = PixColors[ (XDEPTH <= 2 ? Color_fg |
1282 | gcvalue.foreground = PixColors[ (XDEPTH <= 2 ? Color_fg : Color_scroll)]; |
1302 | : Color_scroll)]; |
|
|
1303 | scrollbarGC = XCreateGC (display->display, TermWin.vt, |
1283 | scrollbarGC = XCreateGC (display->display, TermWin.vt, GCForeground, &gcvalue); |
1304 | GCForeground, &gcvalue); |
|
|
1305 | #endif |
1284 | #endif |
1306 | } |
1285 | } |
1307 | |
1286 | |
1308 | /*----------------------------------------------------------------------*/ |
1287 | /*----------------------------------------------------------------------*/ |
1309 | /* |
1288 | /* |