diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-14 06:11:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-14 06:11:44 -0700 |
commit | dbeb03aa680dde36bd917057a54dc2651b780f27 (patch) | |
tree | 078891937a369fae4a7399374c58c3352734f199 /sway/input/input-manager.c | |
parent | 63f28bcf1efa0f60fef7d50d8c5db541295281c7 (diff) | |
parent | 13c6627ddb7dbe235426e123ee6ff8e6794bda6d (diff) |
Merge pull request #2271 from RedSoxFan/implement-1569
Implement tap_button_map for input devices
Diffstat (limited to 'sway/input/input-manager.c')
-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) { |