… | |
… | |
2904 | selection_wait = Sel_normal; |
2904 | selection_wait = Sel_normal; |
2905 | |
2905 | |
2906 | #if X_HAVE_UTF8_STRING |
2906 | #if X_HAVE_UTF8_STRING |
2907 | selection_type = Sel_UTF8String; |
2907 | selection_type = Sel_UTF8String; |
2908 | if (selection_request_other (xa[XA_UTF8_STRING], selnum)) |
2908 | if (selection_request_other (xa[XA_UTF8_STRING], selnum)) |
2909 | return; |
2909 | return; |
2910 | #else |
2910 | #else |
2911 | selection_type = Sel_CompoundText; |
2911 | selection_type = Sel_CompoundText; |
2912 | if (selection_request_other (xa[XA_COMPOUND_TEXT], selnum)) |
2912 | if (selection_request_other (xa[XA_COMPOUND_TEXT], selnum)) |
2913 | return; |
2913 | return; |
2914 | #endif |
2914 | #endif |
2915 | } |
2915 | } |
2916 | |
2916 | |
2917 | selection_wait = Sel_none; /* don't loop in selection_paste () */ |
2917 | selection_wait = Sel_none; /* don't loop in selection_paste () */ |
2918 | selection_paste (display->root, XA_CUT_BUFFER0, false); |
2918 | selection_paste (display->root, XA_CUT_BUFFER0, false); |