… | |
… | |
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) |
… | |
… | |
3049 | |
3052 | |
3050 | if (clicks == 2 && !selection.rect |
3053 | if (clicks == 2 && !selection.rect |
3051 | && HOOK_INVOKE ((this, HOOK_SEL_EXTEND, DT_END))) |
3054 | && HOOK_INVOKE ((this, HOOK_SEL_EXTEND, DT_END))) |
3052 | { |
3055 | { |
3053 | MEvent.clicks = 1; // what a mess |
3056 | MEvent.clicks = 1; // what a mess |
|
|
3057 | selection.screen = current_screen; |
|
|
3058 | selection.op = SELECTION_CONT; |
3054 | return; |
3059 | return; |
3055 | } |
3060 | } |
3056 | |
3061 | |
3057 | selection_start_colrow (Pixel2Col (x), Pixel2Row (y)); |
3062 | selection_start_colrow (Pixel2Col (x), Pixel2Row (y)); |
3058 | |
3063 | |