diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-30 13:44:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 13:44:11 +0200 |
commit | 8f6aca2166030846655432d92498bb8d2e22036b (patch) | |
tree | 0660b8052702d43b142a58e1c664e246918e8d7c /sway/input | |
parent | Merge pull request #2730 from ivyl/remove_cap_leftovers (diff) | |
parent | add tap-and-drag setting to sway-input (diff) | |
download | sway-8f6aca2166030846655432d92498bb8d2e22036b.tar.gz sway-8f6aca2166030846655432d92498bb8d2e22036b.tar.zst sway-8f6aca2166030846655432d92498bb8d2e22036b.zip |
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.c | 7 |
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( | |||
120 | libinput_device_config_click_set_method(libinput_device, | 120 | libinput_device_config_click_set_method(libinput_device, |
121 | ic->click_method); | 121 | ic->click_method); |
122 | } | 122 | } |
123 | if (ic->drag != INT_MIN) { | ||
124 | wlr_log(WLR_DEBUG, | ||
125 | "libinput_config_pointer(%s) tap_set_drag_enabled(%d)", | ||
126 | ic->identifier, ic->click_method); | ||
127 | libinput_device_config_tap_set_drag_enabled(libinput_device, | ||
128 | ic->drag); | ||
129 | } | ||
123 | if (ic->drag_lock != INT_MIN) { | 130 | if (ic->drag_lock != INT_MIN) { |
124 | wlr_log(WLR_DEBUG, | 131 | wlr_log(WLR_DEBUG, |
125 | "libinput_config_pointer(%s) tap_set_drag_lock_enabled(%d)", | 132 | "libinput_config_pointer(%s) tap_set_drag_lock_enabled(%d)", |