diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-16 14:39:44 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-23 09:43:59 +0000 |
| commit | 4f578189cc5ff6cd9be87db8c6b590804a49afa4 (patch) | |
| tree | 7ba73217a85d7bfe4cfaa92f0beedfbe2b13df10 /selection.c | |
| parent | selection: copy selected text to the target configured by ‘selection-target’ (diff) | |
config: add ‘none’ as a possible value for ‘selection-target’
When ‘selection-target’ is set to ‘none’, selecting text does not copy
the text to _any_ clipboard.
This patch also refactors the value parsing to be data driven.
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.c b/selection.c index 0c4c6d1b..00292541 100644 --- a/selection.c +++ b/selection.c @@ -1019,6 +1019,9 @@ selection_finalize(struct seat *seat, struct terminal *term, uint32_t serial) xassert(term->selection.start.row <= term->selection.end.row); switch (term->conf->selection_target) { + case SELECTION_TARGET_NONE: + break; + case SELECTION_TARGET_PRIMARY: selection_to_primary(seat, term, serial); break; |
