mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
rootston: add arbitrary libinput config 'tap_enabled'
This ought to be enough to serve as an example for other compositors to use.
This commit is contained in:
parent
e04d350113
commit
e85c2827c8
4 changed files with 24 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue