… | |
… | |
2804 | * EXT: button 2 release |
2804 | * EXT: button 2 release |
2805 | */ |
2805 | */ |
2806 | void |
2806 | void |
2807 | rxvt_term::selection_request (Time tm, int selnum) NOTHROW |
2807 | rxvt_term::selection_request (Time tm, int selnum) NOTHROW |
2808 | { |
2808 | { |
2809 | /* After making a selection with selection_make this function will always |
2809 | if (selection.text && selnum == Sel_Primary) |
2810 | * return the internal selection, which is not correct IMO, now much more since |
|
|
2811 | * I added the selnum parameter. |
|
|
2812 | */ |
|
|
2813 | #if 0 |
|
|
2814 | if (selection.text) |
|
|
2815 | { /* internal selection */ |
2810 | { /* internal selection */ |
2816 | char *str = rxvt_wcstombs (selection.text, selection.len); |
2811 | char *str = rxvt_wcstombs (selection.text, selection.len); |
2817 | paste (str, strlen (str)); |
2812 | paste (str, strlen (str)); |
2818 | free (str); |
2813 | free (str); |
2819 | return; |
2814 | return; |
2820 | } |
2815 | } |
2821 | else |
2816 | else |
2822 | #endif |
|
|
2823 | { |
2817 | { |
2824 | selection_request_time = tm; |
2818 | selection_request_time = tm; |
2825 | selection_wait = Sel_normal; |
2819 | selection_wait = Sel_normal; |
2826 | |
2820 | |
2827 | #if X_HAVE_UTF8_STRING |
2821 | #if X_HAVE_UTF8_STRING |