diff options
author | pudiva chip lĂquida <pudiva@skylittlesystem.org> | 2022-08-24 00:13:12 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-30 10:56:34 +0100 |
commit | 7cc8ab6d6c4e7ebbfee832b3d8d8fd86623d89fc (patch) | |
tree | faacab010de2a3ffdd76dcf3bab015bb708f42dc /sway/config | |
parent | a61815d3859e4cc92d3f8a0701a5675d97b81cdc (diff) |
Support libinput's 1.21 new dwtp option
Support the new dwtp (disable while trackpointing) option introduced in
libinput 1.21, allowing users to control whether the trackpoint (like
those in Thinkpads, but not only) should be disabled while using the
keyboard/touchpad.
See: https://gitlab.freedesktop.org/libinput/libinput/-/issues/731
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/config/input.c b/sway/config/input.c index a998e170..a98204df 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -25,6 +25,7 @@ struct input_config *new_input_config(const char* identifier) { input->drag = INT_MIN; input->drag_lock = INT_MIN; input->dwt = INT_MIN; + input->dwtp = INT_MIN; input->send_events = INT_MIN; input->click_method = INT_MIN; input->middle_emulation = INT_MIN; @@ -61,6 +62,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) { if (src->dwt != INT_MIN) { dst->dwt = src->dwt; } + if (src->dwtp != INT_MIN) { + dst->dwtp = src->dwtp; + } if (src->left_handed != INT_MIN) { dst->left_handed = src->left_handed; } |