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.366 by sf-exg, Fri Jan 28 00:08:58 2011 UTC vs.
Revision 1.367 by sf-exg, Mon Jan 31 15:40:22 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines