… | |
… | |
2831 | if (selection.text) |
2831 | if (selection.text) |
2832 | free (selection.text); |
2832 | free (selection.text); |
2833 | |
2833 | |
2834 | selection.text = new_selection_text; |
2834 | selection.text = new_selection_text; |
2835 | |
2835 | |
2836 | XSetSelectionOwner(display->display, XA_PRIMARY, TermWin.vt, tm); |
2836 | XSetSelectionOwner (display->display, XA_PRIMARY, TermWin.vt, tm); |
2837 | if (XGetSelectionOwner(display->display, XA_PRIMARY) != TermWin.vt) |
2837 | if (XGetSelectionOwner (display->display, XA_PRIMARY) == TermWin.vt) |
|
|
2838 | display->set_selection_owner (this); |
|
|
2839 | else |
2838 | rxvt_print_error("can't get primary selection"); |
2840 | rxvt_print_error("can't get primary selection"); |
2839 | |
|
|
2840 | |
2841 | |
2841 | { |
2842 | { |
2842 | XTextProperty ct; |
2843 | XTextProperty ct; |
2843 | char *cl = (char *)selection.text; |
2844 | char *cl = (char *)selection.text; |
2844 | |
2845 | |