ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/screen.C
(Generate patch)

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.27 by pcg, Mon Feb 9 07:11:49 2004 UTC vs.
Revision 1.29 by pcg, Wed Feb 11 08:13:45 2004 UTC

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
3499void 3500void
3500rxvt_term::set_position (XPoint *pos) 3501rxvt_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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines