aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-30 13:44:11 +0200
committerGitHub <noreply@github.com>2018-09-30 13:44:11 +0200
commit8f6aca2166030846655432d92498bb8d2e22036b (patch)
tree0660b8052702d43b142a58e1c664e246918e8d7c /sway/input
parent7355959d7f28714e77f43f987431c664f476d8eb (diff)
parentae2b70f59ec988ae1ad108316ec04d1f634ec735 (diff)
downloadsway-8f6aca2166030846655432d92498bb8d2e22036b.tar.xz
Merge pull request #2725 from PumbaPe/add-tap-and-drag
Add tap and drag to sway-input
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/input-manager.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index f39fe29c..32f0355e 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -120,6 +120,13 @@ static void input_manager_libinput_config_pointer(
libinput_device_config_click_set_method(libinput_device,
ic->click_method);
}
+ if (ic->drag != INT_MIN) {
+ wlr_log(WLR_DEBUG,
+ "libinput_config_pointer(%s) tap_set_drag_enabled(%d)",
+ ic->identifier, ic->click_method);
+ libinput_device_config_tap_set_drag_enabled(libinput_device,
+ ic->drag);
+ }
if (ic->drag_lock != INT_MIN) {
wlr_log(WLR_DEBUG,
"libinput_config_pointer(%s) tap_set_drag_lock_enabled(%d)",