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.364 by sf-exg, Thu Jan 20 17:39:29 2011 UTC vs.
Revision 1.368 by sf-exg, Tue Feb 1 00:41:01 2011 UTC

1685 { 1685 {
1686 rvideo_state = on; 1686 rvideo_state = on;
1687 1687
1688 ::swap (pix_colors[Color_fg], pix_colors[Color_bg]); 1688 ::swap (pix_colors[Color_fg], pix_colors[Color_bg]);
1689#ifdef HAVE_BG_PIXMAP 1689#ifdef HAVE_BG_PIXMAP
1690 if (bgPixmap.pixmap == None) 1690 if (bg_pixmap == None)
1691#endif 1691#endif
1692 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]); 1692 XSetWindowBackground (dpy, vt, pix_colors[Color_bg]);
1693 1693
1694 XGCValues gcvalue; 1694 XGCValues gcvalue;
1695 gcvalue.foreground = pix_colors[Color_fg]; 1695 gcvalue.foreground = pix_colors[Color_fg];
2031 refresh_count = 0; 2031 refresh_count = 0;
2032 2032
2033 unsigned int old_screen_flags = screen.flags; 2033 unsigned int old_screen_flags = screen.flags;
2034 char have_bg = 0; 2034 char have_bg = 0;
2035#ifdef HAVE_BG_PIXMAP 2035#ifdef HAVE_BG_PIXMAP
2036 have_bg = bgPixmap.pixmap != None; 2036 have_bg = bg_pixmap != None;
2037#endif 2037#endif
2038 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */ 2038 ocrow = oldcursor.row; /* is there an old outline cursor on screen? */
2039 2039
2040 /* 2040 /*
2041 * B: reverse any characters which are selected 2041 * B: reverse any characters which are selected
2513rxvt_term::scr_recolour (bool refresh) NOTHROW 2513rxvt_term::scr_recolour (bool refresh) NOTHROW
2514{ 2514{
2515 bool transparent = false; 2515 bool transparent = false;
2516 2516
2517#ifdef HAVE_BG_PIXMAP 2517#ifdef HAVE_BG_PIXMAP
2518 if (bgPixmap.pixmap != None) 2518 if (bg_pixmap != None)
2519 { 2519 {
2520# ifdef ENABLE_TRANSPARENCY 2520# ifdef ENABLE_TRANSPARENCY
2521 if (bgPixmap.flags & bgPixmap_t::isTransparent) 2521 if (bg_flags & BG_IS_TRANSPARENT)
2522 { 2522 {
2523 XSetWindowBackgroundPixmap (dpy, parent[0], bgPixmap.pixmap); 2523 XSetWindowBackgroundPixmap (dpy, parent[0], bg_pixmap);
2524 XSetWindowBackgroundPixmap (dpy, vt, ParentRelative); 2524 XSetWindowBackgroundPixmap (dpy, vt, ParentRelative);
2525 2525
2526 transparent = true; 2526 transparent = true;
2527 } 2527 }
2528 else 2528 else
2529# endif 2529# endif
2530 { 2530 {
2531 XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]); 2531 XSetWindowBackground (dpy, parent[0], pix_colors[Color_border]);
2532 XSetWindowBackgroundPixmap (dpy, vt, bgPixmap.pixmap); 2532 XSetWindowBackgroundPixmap (dpy, vt, bg_pixmap);
2533 } 2533 }
2534 } 2534 }
2535 else 2535 else
2536#endif 2536#endif
2537 { 2537 {
2742void 2742void
2743rxvt_term::selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW 2743rxvt_term::selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW
2744{ 2744{
2745 if (prop == None) /* check for failed XConvertSelection */ 2745 if (prop == None) /* check for failed XConvertSelection */
2746 { 2746 {
2747 int selnum = selection_type & Sel_whereMask;
2748
2749 if (selnum == Sel_direct)
2750 selection_type = 0;
2751
2747 if ((selection_type & Sel_CompoundText)) 2752 if ((selection_type & Sel_CompoundText))
2748 { 2753 {
2749 int selnum = selection_type & Sel_whereMask;
2750
2751 selection_type = 0; 2754 selection_type = 0;
2752 if (selnum != Sel_direct)
2753 selection_request_other (XA_STRING, selnum); 2755 selection_request_other (XA_STRING, selnum);
2754 } 2756 }
2755 2757
2756 if ((selection_type & Sel_UTF8String)) 2758 if ((selection_type & Sel_UTF8String))
2757 { 2759 {
2758 int selnum = selection_type & Sel_whereMask;
2759
2760 selection_type = Sel_CompoundText; 2760 selection_type = Sel_CompoundText;
2761 if (selnum != Sel_direct)
2762 selection_request_other (xa[XA_COMPOUND_TEXT], selnum); 2761 selection_request_other (xa[XA_COMPOUND_TEXT], selnum);
2763 else
2764 selection_type = 0;
2765 } 2762 }
2766 2763
2767 return; 2764 return;
2768 } 2765 }
2769 2766
2842 { 2839 {
2843 /* 2840 /*
2844 * pass through again trying CUT_BUFFER0 if we've come from 2841 * pass through again trying CUT_BUFFER0 if we've come from
2845 * XConvertSelection () but nothing was presented 2842 * XConvertSelection () but nothing was presented
2846 */ 2843 */
2847 selection_paste (display->root, XA_CUT_BUFFER0, False); 2844 selection_paste (display->root, XA_CUT_BUFFER0, false);
2848 } 2845 }
2849 2846
2850 goto bailout; 2847 goto bailout;
2851 } 2848 }
2852 } 2849 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines