diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-24 07:38:21 +0100 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-12-24 14:55:38 +0100 |
commit | e85c2827c8929ed39d0931ba054047b0a35e7dcc (patch) | |
tree | a701435397e2722cb114ab0c0598081535cba394 /rootston/config.c | |
parent | e04d3501133dc0c73bb43af323bca51ab0b352a1 (diff) |
rootston: add arbitrary libinput config 'tap_enabled'
This ought to be enough to serve as an example for other compositors to
use.
Diffstat (limited to 'rootston/config.c')
-rw-r--r-- | rootston/config.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rootston/config.c b/rootston/config.c index ed91d4fd..dd741186 100644 --- a/rootston/config.c +++ b/rootston/config.c @@ -342,6 +342,16 @@ static int config_ini_handler(void *user, const char *section, const char *name, } else if (strcmp(name, "seat") == 0) { free(dc->seat); dc->seat = strdup(value); + } else if (strcmp(name, "tap_enabled") == 0) { + if (strcasecmp(value, "true") == 0) { + dc->tap_enabled = true; + } else if (strcasecmp(value, "false") == 0) { + dc->tap_enabled = false; + } else { + wlr_log(L_ERROR, + "got unknown tap_enabled value: %s", + value); + } } else { wlr_log(L_ERROR, "got unknown device config: %s", name); } |