… | |
… | |
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 | |
… | |
… | |
3495 | } |
3496 | } |
3496 | |
3497 | |
3497 | /* ------------------------------------------------------------------------- */ |
3498 | /* ------------------------------------------------------------------------- */ |
3498 | #ifdef USE_XIM |
3499 | #ifdef USE_XIM |
3499 | void |
3500 | void |
3500 | rxvt_term::set_position (XPoint *pos) |
3501 | rxvt_term::im_set_position (XPoint *pos) |
3501 | { |
3502 | { |
3502 | XWindowAttributes xwa; |
3503 | XWindowAttributes xwa; |
3503 | |
3504 | |
3504 | XGetWindowAttributes (display->display, TermWin.vt, &xwa); |
3505 | XGetWindowAttributes (display->display, TermWin.vt, &xwa); |
3505 | pos->x = Col2Pixel (screen.cur.col) + xwa.x; |
3506 | pos->x = Col2Pixel (screen.cur.col) + xwa.x; |