… | |
… | |
1018 | |
1018 | |
1019 | #ifdef CURSOR_BLINK |
1019 | #ifdef CURSOR_BLINK |
1020 | void |
1020 | void |
1021 | rxvt_term::cursor_blink_reset () |
1021 | rxvt_term::cursor_blink_reset () |
1022 | { |
1022 | { |
1023 | if (hidden_cursor) |
1023 | if (hidden_cursor) |
1024 | { |
1024 | { |
1025 | hidden_cursor = 0; |
1025 | hidden_cursor = 0; |
1026 | want_refresh = 1; |
1026 | want_refresh = 1; |
1027 | } |
1027 | } |
1028 | |
1028 | |
1029 | if (option (Opt_cursorBlink)) |
1029 | if (option (Opt_cursorBlink)) |
1030 | cursor_blink_ev.again (); |
1030 | cursor_blink_ev.again (); |
1031 | else |
1031 | else |
1032 | cursor_blink_ev.stop (); |
1032 | cursor_blink_ev.stop (); |
1033 | } |
1033 | } |
1034 | |
1034 | |
1035 | void |
1035 | void |
1036 | rxvt_term::cursor_blink_cb (ev::timer &w, int revents) |
1036 | rxvt_term::cursor_blink_cb (ev::timer &w, int revents) |
1037 | { |
1037 | { |
… | |
… | |
3453 | if (!strcmp (str, "?")) |
3453 | if (!strcmp (str, "?")) |
3454 | { |
3454 | { |
3455 | char str[256]; |
3455 | char str[256]; |
3456 | |
3456 | |
3457 | sprintf (str, "[%dx%d+%d+%d]", |
3457 | sprintf (str, "[%dx%d+%d+%d]", |
3458 | min (h_scale, 32767), min (v_scale, 32767), |
3458 | min (bg_image.h_scale, 32767), min (bg_image.v_scale, 32767), |
3459 | min (h_align, 32767), min (v_align, 32767)); |
3459 | min (bg_image.h_align, 32767), min (bg_image.v_align, 32767)); |
3460 | process_xterm_seq (XTerm_title, str, CHAR_ST); |
3460 | process_xterm_seq (XTerm_title, str, CHAR_ST); |
3461 | } |
3461 | } |
3462 | else |
3462 | else |
3463 | { |
3463 | { |
3464 | bool changed = false; |
3464 | bool changed = false; |
3465 | |
3465 | |
3466 | if (*str != ';') |
3466 | if (*str != ';') |
3467 | { |
3467 | { |
3468 | if (bg_set_file (str)) /* change pixmap */ |
3468 | if (bg_image.set_file (str)) /* change pixmap */ |
3469 | changed = true; |
3469 | changed = true; |
3470 | } |
3470 | } |
3471 | else |
3471 | else |
3472 | { |
3472 | { |
3473 | str++; |
3473 | str++; |
3474 | if (bg_set_geometry (str, true)) |
3474 | if (bg_image.set_geometry (str, true)) |
3475 | changed = true; |
3475 | changed = true; |
3476 | } |
3476 | } |
3477 | |
3477 | |
3478 | if (changed) |
3478 | if (changed) |
3479 | { |
3479 | { |
… | |
… | |
3586 | { |
3586 | { |
3587 | int state; |
3587 | int state; |
3588 | |
3588 | |
3589 | if (mode == 's') |
3589 | if (mode == 's') |
3590 | { |
3590 | { |
3591 | SavedModes |= (priv_modes & bit); |
3591 | if (priv_modes & bit) |
|
|
3592 | SavedModes |= bit; |
|
|
3593 | else |
|
|
3594 | SavedModes &= ~bit; |
3592 | return -1; |
3595 | return -1; |
3593 | } |
3596 | } |
3594 | else |
3597 | else |
3595 | { |
3598 | { |
3596 | if (mode == 'r') |
3599 | if (mode == 'r') |