… | |
… | |
1473 | } |
1473 | } |
1474 | else |
1474 | else |
1475 | { |
1475 | { |
1476 | #ifdef HAVE_BG_PIXMAP |
1476 | #ifdef HAVE_BG_PIXMAP |
1477 | if (moved) |
1477 | if (moved) |
1478 | { |
|
|
1479 | if (mapped) |
|
|
1480 | update_background (); |
1478 | update_background (); |
1481 | else |
|
|
1482 | bg_invalidate (); |
|
|
1483 | } |
|
|
1484 | #endif |
1479 | #endif |
1485 | } |
1480 | } |
1486 | |
1481 | |
1487 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1482 | HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); |
1488 | } |
1483 | } |
… | |
… | |
2656 | #if !ENABLE_MINIMAL |
2651 | #if !ENABLE_MINIMAL |
2657 | case '9': |
2652 | case '9': |
2658 | scr_forwardindex (); |
2653 | scr_forwardindex (); |
2659 | break; |
2654 | break; |
2660 | #endif |
2655 | #endif |
|
|
2656 | // DECPAM/DECPNM |
2661 | case '=': |
2657 | case '=': |
2662 | case '>': |
2658 | case '>': |
2663 | set_privmode (PrivMode_aplKP, ch == '='); |
2659 | set_privmode (PrivMode_aplKP, ch == '='); |
2664 | break; |
2660 | break; |
2665 | |
2661 | |
… | |
… | |
3452 | min (h_align, 32767), min (v_align, 32767)); |
3448 | min (h_align, 32767), min (v_align, 32767)); |
3453 | process_xterm_seq (XTerm_title, str, CHAR_ST); |
3449 | process_xterm_seq (XTerm_title, str, CHAR_ST); |
3454 | } |
3450 | } |
3455 | else |
3451 | else |
3456 | { |
3452 | { |
3457 | int changed = 0; |
3453 | bool changed = false; |
3458 | |
3454 | |
3459 | if (*str != ';') |
3455 | if (*str != ';') |
3460 | { |
3456 | { |
3461 | if (bg_set_file (str)) /* change pixmap */ |
3457 | if (bg_set_file (str)) /* change pixmap */ |
3462 | { |
|
|
3463 | changed++; |
3458 | changed = true; |
3464 | str = strchr (str, ';'); |
|
|
3465 | if (str == NULL) |
|
|
3466 | bg_set_default_geometry (); |
|
|
3467 | else |
|
|
3468 | bg_set_geometry (str+1); |
|
|
3469 | } |
|
|
3470 | } |
3459 | } |
3471 | else |
3460 | else |
3472 | { |
3461 | { |
3473 | str++; |
3462 | str++; |
3474 | if (bg_set_geometry (str, true)) |
3463 | if (bg_set_geometry (str, true)) |
3475 | changed++; |
3464 | changed = true; |
3476 | } |
3465 | } |
3477 | |
3466 | |
3478 | if (changed) |
3467 | if (changed) |
3479 | { |
3468 | { |
3480 | if (bg_window_position_sensitive ()) |
3469 | if (bg_window_position_sensitive ()) |
… | |
… | |
3615 | { |
3604 | { |
3616 | const int argval; |
3605 | const int argval; |
3617 | const unsigned long bit; |
3606 | const unsigned long bit; |
3618 | } argtopriv[] = { |
3607 | } argtopriv[] = { |
3619 | { 1, PrivMode_aplCUR }, // DECCKM |
3608 | { 1, PrivMode_aplCUR }, // DECCKM |
3620 | { 2, PrivMode_vt52 }, |
3609 | { 2, PrivMode_vt52 }, // DECANM |
3621 | { 3, PrivMode_132 }, // DECCOLM |
3610 | { 3, PrivMode_132 }, // DECCOLM |
3622 | { 4, PrivMode_smoothScroll }, // DECSCLM |
3611 | { 4, PrivMode_smoothScroll }, // DECSCLM |
3623 | { 5, PrivMode_rVideo }, // DECSCNM |
3612 | { 5, PrivMode_rVideo }, // DECSCNM |
3624 | { 6, PrivMode_relOrigin }, // DECOM |
3613 | { 6, PrivMode_relOrigin }, // DECOM |
3625 | { 7, PrivMode_Autowrap }, // DECAWM |
3614 | { 7, PrivMode_Autowrap }, // DECAWM |
3626 | // 8, auto-repeat keys // DECARM |
3615 | // 8, auto-repeat keys // DECARM |
3627 | { 9, PrivMode_MouseX10 }, |
3616 | { 9, PrivMode_MouseX10 }, |
3628 | // 18 end FF to printer after print screen |
3617 | // 18 end FF to printer after print screen |
3629 | // 19 Print screen prints full screen/scroll region |
3618 | // 19 Print screen prints full screen/scroll region |
3630 | { 25, PrivMode_VisibleCursor }, // cnorm/cvvis/civis |
3619 | { 25, PrivMode_VisibleCursor }, // DECTCEM cnorm/cvvis/civis |
3631 | #ifdef scrollBar_esc |
3620 | #ifdef scrollBar_esc |
3632 | { scrollBar_esc, PrivMode_scrollBar }, |
3621 | { scrollBar_esc, PrivMode_scrollBar }, |
3633 | #endif |
3622 | #endif |
3634 | { 35, PrivMode_ShiftKeys }, // rxvt extension |
3623 | { 35, PrivMode_ShiftKeys }, // rxvt extension |
3635 | // 38, tektronix mode // DECTEK |
3624 | // 38, tektronix mode // DECTEK |
3636 | { 40, PrivMode_132OK }, |
3625 | { 40, PrivMode_132OK }, |
3637 | // 41 xterm more fixes NYI |
3626 | // 41 xterm more fixes NYI |
3638 | // 45 margin bell NYI |
3627 | // 45 margin bell NYI |
3639 | // 46 start logging |
3628 | // 46 start logging |
3640 | { 47, PrivMode_Screen }, |
3629 | { 47, PrivMode_Screen }, |
3641 | { 66, PrivMode_aplKP }, // DECPAM/DECPNM |
3630 | { 66, PrivMode_aplKP }, // DECNKM |
3642 | #ifndef NO_BACKSPACE_KEY |
3631 | #ifndef NO_BACKSPACE_KEY |
3643 | { 67, PrivMode_BackSpace }, // DECBKM |
3632 | { 67, PrivMode_BackSpace }, // DECBKM |
3644 | #endif |
3633 | #endif |
3645 | { 1000, PrivMode_MouseX11 }, |
3634 | { 1000, PrivMode_MouseX11 }, |
3646 | { 1002, PrivMode_MouseBtnEvent }, |
3635 | { 1002, PrivMode_MouseBtnEvent }, |