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.
This commit is contained in:
Daniel Eklöf 2021-01-16 15:39:44 +01:00
parent 07f6b3b1af
commit 4f578189cc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 22 additions and 12 deletions

View file

@ -182,6 +182,7 @@ struct config {
bool presentation_timings;
bool hold_at_exit;
enum {
SELECTION_TARGET_NONE,
SELECTION_TARGET_PRIMARY,
SELECTION_TARGET_CLIPBOARD,
SELECTION_TARGET_BOTH