… | |
… | |
26 | |
26 | |
27 | #include "../config.h" /* NECESSARY */ |
27 | #include "../config.h" /* NECESSARY */ |
28 | #include "rxvt.h" /* NECESSARY */ |
28 | #include "rxvt.h" /* NECESSARY */ |
29 | #include "rxvtperl.h" /* NECESSARY */ |
29 | #include "rxvtperl.h" /* NECESSARY */ |
30 | |
30 | |
31 | #include <X11/Xmd.h> /* get the typedef for CARD32 */ |
|
|
32 | |
|
|
33 | #include <inttypes.h> |
31 | #include <inttypes.h> |
34 | |
32 | |
35 | #include "salloc.C" // HACK, should be a seperate compile! |
33 | #include "salloc.C" // HACK, should be a seperate compile! |
36 | |
34 | |
37 | inline void fill_text (text_t *start, text_t value, int len) |
35 | inline void fill_text (text_t *start, text_t value, int len) |
… | |
… | |
161 | { |
159 | { |
162 | #if ENABLE_OVERLAY |
160 | #if ENABLE_OVERLAY |
163 | scr_overlay_off (); |
161 | scr_overlay_off (); |
164 | #endif |
162 | #endif |
165 | |
163 | |
|
|
164 | rvideo_mode = false; |
166 | view_start = 0; |
165 | view_start = 0; |
167 | num_scr = 0; |
166 | num_scr = 0; |
168 | |
167 | |
169 | if (ncol == 0) |
168 | if (ncol == 0) |
170 | ncol = 80; |
169 | ncol = 80; |
… | |
… | |
237 | selection.text = NULL; |
236 | selection.text = NULL; |
238 | selection.len = 0; |
237 | selection.len = 0; |
239 | selection.op = SELECTION_CLEAR; |
238 | selection.op = SELECTION_CLEAR; |
240 | selection.screen = PRIMARY; |
239 | selection.screen = PRIMARY; |
241 | selection.clicks = 0; |
240 | selection.clicks = 0; |
242 | rvideo_state = rvideo_mode = false; |
|
|
243 | } |
241 | } |
244 | else |
242 | else |
245 | { |
243 | { |
246 | /* |
244 | /* |
247 | * add or delete rows as appropriate |
245 | * add or delete rows as appropriate |
… | |
… | |
1648 | if (rvideo_state != on) |
1646 | if (rvideo_state != on) |
1649 | { |
1647 | { |
1650 | rvideo_state = on; |
1648 | rvideo_state = on; |
1651 | |
1649 | |
1652 | ::swap (pix_colors[Color_fg], pix_colors[Color_bg]); |
1650 | ::swap (pix_colors[Color_fg], pix_colors[Color_bg]); |
1653 | #if XPM_BACKGROUND |
1651 | #ifdef HAVE_BG_PIXMAP |
1654 | if (bgPixmap.pixmap == None) |
1652 | if (bgPixmap.pixmap == None) |
1655 | #endif |
1653 | #endif |
1656 | #if ENABLE_TRANSPARENCY |
1654 | #if ENABLE_TRANSPARENCY |
1657 | if (!option (Opt_transparent) || am_transparent == 0) |
1655 | if (!option (Opt_transparent) || am_transparent == 0) |
1658 | #endif |
1656 | #endif |
… | |
… | |
1914 | |
1912 | |
1915 | bell_ev.start (NOW + VISUAL_BELL_DURATION); |
1913 | bell_ev.start (NOW + VISUAL_BELL_DURATION); |
1916 | } |
1914 | } |
1917 | else |
1915 | else |
1918 | XBell (dpy, 0); |
1916 | XBell (dpy, 0); |
1919 | |
|
|
1920 | #endif |
1917 | #endif |
1921 | } |
1918 | } |
1922 | |
1919 | |
1923 | /* ------------------------------------------------------------------------- */ |
1920 | /* ------------------------------------------------------------------------- */ |
1924 | /* ARGSUSED */ |
1921 | /* ARGSUSED */ |
… | |
… | |
2005 | * A: set up vars |
2002 | * A: set up vars |
2006 | */ |
2003 | */ |
2007 | have_bg = 0; |
2004 | have_bg = 0; |
2008 | refresh_count = 0; |
2005 | refresh_count = 0; |
2009 | |
2006 | |
2010 | #if XPM_BACKGROUND |
2007 | #ifdef HAVE_BG_PIXMAP |
2011 | have_bg |= bgPixmap.pixmap != None; |
2008 | have_bg |= bgPixmap.pixmap != None; |
2012 | #endif |
2009 | #endif |
2013 | #if ENABLE_TRANSPARENCY |
2010 | #if ENABLE_TRANSPARENCY |
2014 | have_bg |= option (Opt_transparent) && am_transparent; |
2011 | have_bg |= option (Opt_transparent) && am_transparent; |
2015 | #endif |
2012 | #endif |
… | |
… | |
2485 | { |
2482 | { |
2486 | if (1 |
2483 | if (1 |
2487 | #if ENABLE_TRANSPARENCY |
2484 | #if ENABLE_TRANSPARENCY |
2488 | && !am_transparent |
2485 | && !am_transparent |
2489 | #endif |
2486 | #endif |
2490 | #if XPM_BACKGROUND |
2487 | #ifdef HAVE_BG_PIXMAP |
2491 | && !bgPixmap.pixmap |
2488 | && !bgPixmap.pixmap |
2492 | #endif |
2489 | #endif |
2493 | ) |
2490 | ) |
2494 | { |
2491 | { |
2495 | XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]); |
2492 | XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]); |