aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-07-14 01:01:47 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-07-14 01:01:47 -0400
commit13c6627ddb7dbe235426e123ee6ff8e6794bda6d (patch)
tree078891937a369fae4a7399374c58c3352734f199 /sway/input
parent63f28bcf1efa0f60fef7d50d8c5db541295281c7 (diff)
Implement tap_button_map for input devices
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/input-manager.c6
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) {