… | |
… | |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
6 | * Copyright (c) 1992 John Bovey, University of Kent at Canterbury <jdb@ukc.ac.uk> |
7 | * - original version |
7 | * - original version |
8 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
8 | * Copyright (c) 1994 Robert Nation <nation@rocket.sanders.lockheed.com> |
9 | * - extensive modifications |
9 | * - extensive modifications |
10 | * Copyright (c) 1995 Garrett D'Amore <garrett@netcom.com> |
10 | * Copyright (c) 1995 Garrett D'Amore <garrett@netcom.com> |
11 | * - vt100 printing |
11 | * - vt100 printing |
12 | * Copyright (c) 1995 Steven Hirsch <hirsch@emba.uvm.edu> |
12 | * Copyright (c) 1995 Steven Hirsch <hirsch@emba.uvm.edu> |
13 | * - X11 mouse report mode and support for |
13 | * - X11 mouse report mode and support for |
14 | * DEC "private mode" save/restore functions. |
14 | * DEC "private mode" save/restore functions. |
… | |
… | |
20 | * Copyright (c) 1997 Raul Garcia Garcia <rgg@tid.es> |
20 | * Copyright (c) 1997 Raul Garcia Garcia <rgg@tid.es> |
21 | * - modification and cleanups for Solaris 2.x |
21 | * - modification and cleanups for Solaris 2.x |
22 | * and Linux 1.2.x |
22 | * and Linux 1.2.x |
23 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
23 | * Copyright (c) 1997,1998 Oezguer Kesim <kesim@math.fu-berlin.de> |
24 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
24 | * Copyright (c) 1998-2001 Geoff Wing <gcw@pobox.com> |
25 | * - extensive modifications |
25 | * - extensive modifications |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
26 | * Copyright (c) 1998 Alfredo K. Kojima <kojima@windowmaker.org> |
27 | * Copyright (c) 2001 Marius Gedminas |
27 | * Copyright (c) 2001 Marius Gedminas |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
28 | * - Ctrl/Mod4+Tab works like Meta+Tab (options) |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
29 | * Copyright (c) 2003 Rob McMullen <robm@flipturn.org> |
30 | * Copyright (c) 2003-2011 Marc Lehmann <schmorp@schmorp.de> |
30 | * Copyright (c) 2003-2011 Marc Lehmann <schmorp@schmorp.de> |
… | |
… | |
941 | void |
941 | void |
942 | rxvt_term::flush () |
942 | rxvt_term::flush () |
943 | { |
943 | { |
944 | flush_ev.stop (); |
944 | flush_ev.stop (); |
945 | |
945 | |
946 | #ifdef HAVE_BG_PIXMAP |
946 | #ifdef HAVE_IMG |
947 | if (bg_flags & BG_NEEDS_REFRESH) |
947 | if (bg_flags & BG_NEEDS_REFRESH) |
948 | { |
948 | { |
949 | bg_flags &= ~BG_NEEDS_REFRESH; |
949 | bg_flags &= ~BG_NEEDS_REFRESH; |
950 | scr_touch (false); |
950 | scr_touch (false); |
951 | } |
951 | } |
… | |
… | |
1838 | pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); |
1838 | pix_colors_focused [idx].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused [idx], c); |
1839 | } |
1839 | } |
1840 | #endif |
1840 | #endif |
1841 | } |
1841 | } |
1842 | |
1842 | |
1843 | #if ENABLE_TRANSPARENCY || ENABLE_PERL |
1843 | #if BG_IMAGE_FROM_ROOT || ENABLE_PERL |
1844 | void ecb_hot |
1844 | void ecb_hot |
1845 | rxvt_term::rootwin_cb (XEvent &ev) |
1845 | rxvt_term::rootwin_cb (XEvent &ev) |
1846 | { |
1846 | { |
1847 | make_current (); |
1847 | make_current (); |
1848 | |
1848 | |
… | |
… | |
1858 | * use the property to determine the pixmap. We use it later on. |
1858 | * use the property to determine the pixmap. We use it later on. |
1859 | */ |
1859 | */ |
1860 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1860 | if (ev.xproperty.atom == xa[XA_XROOTPMAP_ID] |
1861 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1861 | || ev.xproperty.atom == xa[XA_ESETROOT_PMAP_ID]) |
1862 | { |
1862 | { |
1863 | # if ENABLE_TRANSPARENCY |
1863 | #if BG_IMAGE_FROM_ROOT |
1864 | bg_set_root_pixmap (); |
1864 | bg_set_root_pixmap (); |
1865 | update_background (); |
1865 | update_background (); |
1866 | #endif |
1866 | #endif |
1867 | #if ENABLE_PERL |
1867 | #if ENABLE_PERL |
1868 | HOOK_INVOKE ((this, HOOK_ROOTPMAP_CHANGE, DT_END)); |
1868 | HOOK_INVOKE ((this, HOOK_ROOTPMAP_CHANGE, DT_END)); |
… | |
… | |
2387 | } |
2387 | } |
2388 | |
2388 | |
2389 | if (len == (size_t)-1) |
2389 | if (len == (size_t)-1) |
2390 | { |
2390 | { |
2391 | mbstate.reset (); // reset now undefined conversion state |
2391 | mbstate.reset (); // reset now undefined conversion state |
|
|
2392 | // a -1 might indicate that a previous incomplete char is invalid (previous return -2) |
|
|
2393 | // in which case we "erroneously" return the next byte which might be valid. |
2392 | return (unsigned char)*cmdbuf_ptr++; // the _occasional_ latin1 character is allowed to slip through |
2394 | return (unsigned char)*cmdbuf_ptr++; // the _occasional_ latin1 character is allowed to slip through |
2393 | } |
2395 | } |
2394 | |
2396 | |
2395 | // assume wchar == unicode |
2397 | // assume wchar == unicode |
2396 | cmdbuf_ptr += len; |
2398 | cmdbuf_ptr += len; |
… | |
… | |
3451 | break; |
3453 | break; |
3452 | #endif |
3454 | #endif |
3453 | case URxvt_Color_border: |
3455 | case URxvt_Color_border: |
3454 | process_color_seq (op, Color_border, str, resp); |
3456 | process_color_seq (op, Color_border, str, resp); |
3455 | break; |
3457 | break; |
3456 | #if ENABLE_TRANSPARENCY |
3458 | |
|
|
3459 | #if BG_IMAGE_FROM_ROOT |
3457 | case URxvt_Color_tint: |
3460 | case URxvt_Color_tint: |
3458 | process_color_seq (op, Color_tint, str, resp); |
3461 | process_color_seq (op, Color_tint, str, resp); |
3459 | { |
3462 | { |
3460 | bool changed = false; |
3463 | bool changed = false; |
3461 | |
3464 | |