diff options
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/selection.c b/selection.c index 966b6b2a..00292541 100644 --- a/selection.c +++ b/selection.c @@ -1017,7 +1017,23 @@ selection_finalize(struct seat *seat, struct terminal *term, uint32_t serial) } xassert(term->selection.start.row <= term->selection.end.row); - selection_to_primary(seat, term, serial); + + switch (term->conf->selection_target) { + case SELECTION_TARGET_NONE: + break; + + case SELECTION_TARGET_PRIMARY: + selection_to_primary(seat, term, serial); + break; + case SELECTION_TARGET_CLIPBOARD: + selection_to_clipboard(seat, term, serial); + break; + + case SELECTION_TARGET_BOTH: + selection_to_primary(seat, term, serial); + selection_to_clipboard(seat, term, serial); + break; + } } void |
