… | |
… | |
536 | scr_overlay_new (0, -1, sizeof ("ISO 14755 mode") - 1, 1); |
536 | scr_overlay_new (0, -1, sizeof ("ISO 14755 mode") - 1, 1); |
537 | scr_overlay_set (0, 0, "ISO 14755 mode"); |
537 | scr_overlay_set (0, 0, "ISO 14755 mode"); |
538 | # endif |
538 | # endif |
539 | } |
539 | } |
540 | #endif |
540 | #endif |
541 | |
541 | |
542 | #ifdef PRINTPIPE |
542 | #ifdef PRINTPIPE |
543 | if (keysym == XK_Print) |
543 | if (keysym == XK_Print) |
544 | { |
544 | { |
545 | scr_printscreen (ctrl | shft); |
545 | scr_printscreen (ctrl | shft); |
546 | return; |
546 | return; |
… | |
… | |
1186 | |
1186 | |
1187 | #if LINUX_YIELD_HACK |
1187 | #if LINUX_YIELD_HACK |
1188 | static struct event_handler |
1188 | static struct event_handler |
1189 | { |
1189 | { |
1190 | check_watcher yield_ev; |
1190 | check_watcher yield_ev; |
1191 | |
1191 | |
1192 | void yield_cb (check_watcher &w) |
1192 | void yield_cb (check_watcher &w) |
1193 | { |
1193 | { |
1194 | // this should really be sched_yield(), but the linux guys thought |
1194 | // this should really be sched_yield(), but the linux guys thought |
1195 | // that giving a process calling sched_yield () less cpu time than |
1195 | // that giving a process calling sched_yield () less cpu time than |
1196 | // ones with high nice levels is a useful thing to do. It surely is is |
1196 | // ones with high nice levels is a useful thing to do. It surely is is |
… | |
… | |
1243 | pty_ev.stop (); |
1243 | pty_ev.stop (); |
1244 | |
1244 | |
1245 | if (!option (Opt_hold)) |
1245 | if (!option (Opt_hold)) |
1246 | destroy (); |
1246 | destroy (); |
1247 | } |
1247 | } |
1248 | |
1248 | |
1249 | return false; |
1249 | return false; |
1250 | } |
1250 | } |
1251 | |
1251 | |
1252 | void |
1252 | void |
1253 | rxvt_term::pty_cb (io_watcher &w, short revents) |
1253 | rxvt_term::pty_cb (io_watcher &w, short revents) |
… | |
… | |
1490 | if (szHint.width != ev.xconfigure.width || szHint.height != ev.xconfigure.height) |
1490 | if (szHint.width != ev.xconfigure.width || szHint.height != ev.xconfigure.height) |
1491 | { |
1491 | { |
1492 | seen_resize = 1; |
1492 | seen_resize = 1; |
1493 | resize_all_windows (ev.xconfigure.width, ev.xconfigure.height, 1); |
1493 | resize_all_windows (ev.xconfigure.width, ev.xconfigure.height, 1); |
1494 | #ifdef XPM_BACKGROUND |
1494 | #ifdef XPM_BACKGROUND |
1495 | if (!option(Opt_transparent) && bgPixmap.auto_resize) |
1495 | if (!option (Opt_transparent) && bgPixmap.auto_resize) |
1496 | { |
1496 | { |
1497 | resize_pixmap (); |
1497 | resize_pixmap (); |
1498 | scr_touch (true); |
1498 | scr_touch (true); |
1499 | } |
1499 | } |
1500 | #endif |
1500 | #endif |
1501 | } |
1501 | } |
1502 | |
1502 | |
1503 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1503 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1504 | |
1504 | |
… | |
… | |
2508 | { |
2508 | { |
2509 | if ((buf[len++] = cmd_getc ()) == 'i') |
2509 | if ((buf[len++] = cmd_getc ()) == 'i') |
2510 | break; /* done = 1 */ |
2510 | break; /* done = 1 */ |
2511 | } |
2511 | } |
2512 | } |
2512 | } |
2513 | |
2513 | |
2514 | for (i = 0; i < len; i++) |
2514 | for (i = 0; i < len; i++) |
2515 | if (putc (buf[i], fd) == EOF) |
2515 | if (putc (buf[i], fd) == EOF) |
2516 | { |
2516 | { |
2517 | done = 1; |
2517 | done = 1; |
2518 | break; |
2518 | break; |
… | |
… | |
3336 | int saveop = op; |
3336 | int saveop = op; |
3337 | |
3337 | |
3338 | dLocal (Display *, dpy); |
3338 | dLocal (Display *, dpy); |
3339 | |
3339 | |
3340 | assert (str != NULL); |
3340 | assert (str != NULL); |
3341 | |
3341 | |
3342 | if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_INT, op, DT_STR, str, DT_END))) |
3342 | if (HOOK_INVOKE ((this, HOOK_OSC_SEQ, DT_INT, op, DT_STR, str, DT_END))) |
3343 | return; |
3343 | return; |
3344 | |
3344 | |
3345 | switch (op) |
3345 | switch (op) |
3346 | { |
3346 | { |
… | |
… | |
3482 | resize_pixmap (); |
3482 | resize_pixmap (); |
3483 | scr_touch (true); |
3483 | scr_touch (true); |
3484 | #endif |
3484 | #endif |
3485 | } |
3485 | } |
3486 | #if TRANSPARENT && defined(HAVE_AFTERIMAGE) |
3486 | #if TRANSPARENT && defined(HAVE_AFTERIMAGE) |
3487 | if (option(Opt_transparent)) |
3487 | if (option (Opt_transparent)) |
3488 | check_our_parents (); |
3488 | check_our_parents (); |
3489 | #endif |
3489 | #endif |
3490 | |
|
|
3491 | } |
3490 | } |
3492 | break; |
3491 | break; |
3493 | |
3492 | |
3494 | case Rxvt_restoreFG: |
3493 | case Rxvt_restoreFG: |
3495 | set_window_color (Color_fg, str); |
3494 | set_window_color (Color_fg, str); |