ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.268 by root, Tue May 1 21:30:01 2007 UTC vs.
Revision 1.273 by ayin, Mon Aug 13 07:18:58 2007 UTC

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
37inline void fill_text (text_t *start, text_t value, int len) 35inline 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 TRANSPARENT 1654#if ENABLE_TRANSPARENCY
1657 if (!option (Opt_transparent) || am_transparent == 0) 1655 if (!option (Opt_transparent) || am_transparent == 0)
1658#endif 1656#endif
1659 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); 1657 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]);
1660 1658
1661 XGCValues gcvalue; 1659 XGCValues gcvalue;
1890# ifdef MAPALERT_OPTION 1888# ifdef MAPALERT_OPTION
1891 if (option (Opt_mapAlert)) 1889 if (option (Opt_mapAlert))
1892# endif 1890# endif
1893 XMapWindow (dpy, parent[0]); 1891 XMapWindow (dpy, parent[0]);
1894# endif 1892# endif
1893# if ENABLE_FRILLS
1894 if (option (Opt_urgentOnBell))
1895 {
1896 XWMHints *h;
1897
1898 h = XGetWMHints(dpy, parent[0]);
1899 if (h != NULL)
1900 {
1901 h->flags |= XUrgencyHint;
1902 XSetWMHints(dpy, parent[0], h);
1903 }
1904 }
1905# endif
1895 1906
1896 if (option (Opt_visualBell)) 1907 if (option (Opt_visualBell))
1897 { 1908 {
1898 rvideo_bell = true; 1909 rvideo_bell = true;
1899 scr_rvideo_mode (rvideo_mode); 1910 scr_rvideo_mode (rvideo_mode);
1901 1912
1902 bell_ev.start (NOW + VISUAL_BELL_DURATION); 1913 bell_ev.start (NOW + VISUAL_BELL_DURATION);
1903 } 1914 }
1904 else 1915 else
1905 XBell (dpy, 0); 1916 XBell (dpy, 0);
1906
1907#endif 1917#endif
1908} 1918}
1909 1919
1910/* ------------------------------------------------------------------------- */ 1920/* ------------------------------------------------------------------------- */
1911/* ARGSUSED */ 1921/* ARGSUSED */
1992 * A: set up vars 2002 * A: set up vars
1993 */ 2003 */
1994 have_bg = 0; 2004 have_bg = 0;
1995 refresh_count = 0; 2005 refresh_count = 0;
1996 2006
1997#if XPM_BACKGROUND 2007#ifdef HAVE_BG_PIXMAP
1998 have_bg |= bgPixmap.pixmap != None; 2008 have_bg |= bgPixmap.pixmap != None;
1999#endif 2009#endif
2000#if TRANSPARENT 2010#if ENABLE_TRANSPARENCY
2001 have_bg |= option (Opt_transparent) && am_transparent; 2011 have_bg |= option (Opt_transparent) && am_transparent;
2002#endif 2012#endif
2003 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ 2013 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */
2004 2014
2005 /* 2015 /*
2469 2479
2470void 2480void
2471rxvt_term::scr_recolour () NOTHROW 2481rxvt_term::scr_recolour () NOTHROW
2472{ 2482{
2473 if (1 2483 if (1
2474#if TRANSPARENT 2484#if ENABLE_TRANSPARENCY
2475 && !am_transparent 2485 && !am_transparent
2476#endif 2486#endif
2477#if XPM_BACKGROUND 2487#ifdef HAVE_BG_PIXMAP
2478 && !bgPixmap.pixmap 2488 && !bgPixmap.pixmap
2479#endif 2489#endif
2480 ) 2490 )
2481 { 2491 {
2482 XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]); 2492 XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines