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.237 by root, Wed Jan 18 11:07:30 2006 UTC vs.
Revision 1.238 by root, Thu Jan 19 16:22:13 2006 UTC

2800 * (+) if ownership is claimed but property is empty, rxvt_selection_paste () 2800 * (+) if ownership is claimed but property is empty, rxvt_selection_paste ()
2801 * will auto fallback to CUT_BUFFER0 2801 * will auto fallback to CUT_BUFFER0
2802 * EXT: button 2 release 2802 * EXT: button 2 release
2803 */ 2803 */
2804void 2804void
2805rxvt_term::selection_request (Time tm, int x, int y) 2805rxvt_term::selection_request (Time tm)
2806{ 2806{
2807 if (x < 0 || x >= width || y < 0 || y >= height)
2808 return; /* outside window */
2809
2810 if (selection.text) 2807 if (selection.text)
2811 { /* internal selection */ 2808 { /* internal selection */
2812 char *str = rxvt_wcstombs (selection.text, selection.len); 2809 char *str = rxvt_wcstombs (selection.text, selection.len);
2813 paste (str, strlen (str)); 2810 paste (str, strlen (str));
2814 free (str); 2811 free (str);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines