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.223 by root, Wed Jan 11 18:54:30 2006 UTC vs.
Revision 1.225 by root, Thu Jan 12 05:22:47 2006 UTC

3021 { 3021 {
3022 display->set_selection_owner (this); 3022 display->set_selection_owner (this);
3023 return true; 3023 return true;
3024 } 3024 }
3025 else 3025 else
3026 {
3027 selection_clear ();
3026 return false; 3028 return false;
3029 }
3027 3030
3028#if 0 3031#if 0
3029 XTextProperty ct; 3032 XTextProperty ct;
3030 3033
3031 if (XwcTextListToTextProperty (display->display, &selection.text, 1, XStringStyle, &ct) >= 0) 3034 if (XwcTextListToTextProperty (display->display, &selection.text, 1, XStringStyle, &ct) >= 0)
3044void 3047void
3045rxvt_term::selection_click (int clicks, int x, int y) 3048rxvt_term::selection_click (int clicks, int x, int y)
3046{ 3049{
3047 clicks = ((clicks - 1) % 3) + 1; 3050 clicks = ((clicks - 1) % 3) + 1;
3048 selection.clicks = clicks; /* save clicks so extend will work */ 3051 selection.clicks = clicks; /* save clicks so extend will work */
3052
3053 if (clicks == 2 && !selection.rect
3054 && HOOK_INVOKE ((this, HOOK_SEL_EXTEND, DT_END)))
3055 {
3056 MEvent.clicks = 1; // what a mess
3057 return;
3058 }
3049 3059
3050 selection_start_colrow (Pixel2Col (x), Pixel2Row (y)); 3060 selection_start_colrow (Pixel2Col (x), Pixel2Row (y));
3051 3061
3052 if (clicks == 2 || clicks == 3) 3062 if (clicks == 2 || clicks == 3)
3053 selection_extend_colrow (selection.mark.col, 3063 selection_extend_colrow (selection.mark.col,
3349 else if (selection.clicks == 2) 3359 else if (selection.clicks == 2)
3350 { 3360 {
3351 if (ROWCOL_IS_AFTER (selection.end, selection.beg)) 3361 if (ROWCOL_IS_AFTER (selection.end, selection.beg))
3352 selection.end.col--; 3362 selection.end.col--;
3353 3363
3354 if (!HOOK_INVOKE ((this, HOOK_SEL_EXTEND, DT_END)))
3355 {
3356 selection_delimit_word (UP, &selection.beg, &selection.beg); 3364 selection_delimit_word (UP, &selection.beg, &selection.beg);
3357 selection_delimit_word (DN, &selection.end, &selection.end); 3365 selection_delimit_word (DN, &selection.end, &selection.end);
3358 }
3359 } 3366 }
3360 else if (selection.clicks == 3) 3367 else if (selection.clicks == 3)
3361 { 3368 {
3362#if ENABLE_FRILLS 3369#if ENABLE_FRILLS
3363 if (OPTION (Opt_tripleclickwords)) 3370 if (OPTION (Opt_tripleclickwords))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines