diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-14 01:01:47 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-07-14 01:01:47 -0400 |
commit | 13c6627ddb7dbe235426e123ee6ff8e6794bda6d (patch) | |
tree | 078891937a369fae4a7399374c58c3352734f199 /sway/input | |
parent | 63f28bcf1efa0f60fef7d50d8c5db541295281c7 (diff) |
Implement tap_button_map for input devices
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/input-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index b18989d0..0b7cb766 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c @@ -181,6 +181,12 @@ static void input_manager_libinput_config_pointer( ic->identifier, ic->tap); libinput_device_config_tap_set_enabled(libinput_device, ic->tap); } + if (ic->tap_button_map != INT_MIN) { + wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) tap_set_button_map(%d)", + ic->identifier, ic->tap); + libinput_device_config_tap_set_button_map(libinput_device, + ic->tap_button_map); + } } static void handle_device_destroy(struct wl_listener *listener, void *data) { |