… | |
… | |
2977 | if (display->clipboard_owner == this) |
2977 | if (display->clipboard_owner == this) |
2978 | display->clipboard_owner = 0; |
2978 | display->clipboard_owner = 0; |
2979 | } |
2979 | } |
2980 | } |
2980 | } |
2981 | |
2981 | |
2982 | void |
|
|
2983 | rxvt_term::clipboard_copy (Time tm) |
|
|
2984 | { |
|
|
2985 | if (selection.len > 0) |
|
|
2986 | { |
|
|
2987 | free (selection.clip_text); |
|
|
2988 | selection.clip_len = selection.len; |
|
|
2989 | selection.clip_text = (wchar_t *) malloc (sizeof (wchar_t) * selection.clip_len); |
|
|
2990 | memcpy (selection.clip_text, selection.text, |
|
|
2991 | sizeof (wchar_t) * selection.clip_len); |
|
|
2992 | selection_grab (tm, true); |
|
|
2993 | } |
|
|
2994 | } |
|
|
2995 | |
|
|
2996 | /* ------------------------------------------------------------------------- */ |
2982 | /* ------------------------------------------------------------------------- */ |
2997 | /* |
2983 | /* |
2998 | * Copy a selection into the cut buffer |
2984 | * Copy a selection into the cut buffer |
2999 | * EXT: button 1 or 3 release |
2985 | * EXT: button 1 or 3 release |
3000 | */ |
2986 | */ |