… | |
… | |
2742 | void |
2742 | void |
2743 | rxvt_term::selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW |
2743 | rxvt_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 | |