diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-09-24 12:46:52 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-09-24 12:49:20 +0100 |
commit | 6194a445d3b10e8afc968712faccdd1d127a8beb (patch) | |
tree | 0a3a9ce74f189ccde3ad7d488fe326f978f2d58e /sway/input | |
parent | Merge pull request #2701 from RedSoxFan/input-wildcard (diff) | |
download | sway-6194a445d3b10e8afc968712faccdd1d127a8beb.tar.gz sway-6194a445d3b10e8afc968712faccdd1d127a8beb.tar.zst sway-6194a445d3b10e8afc968712faccdd1d127a8beb.zip |
input: enable configuring tablets with libinput
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/input-manager.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index f696646f..f39fe29c 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -233,7 +233,8 @@ static void handle_new_input(struct wl_listener *listener, void *data) { | |||
233 | wlr_log(WLR_DEBUG, "adding device: '%s'", | 233 | wlr_log(WLR_DEBUG, "adding device: '%s'", |
234 | input_device->identifier); | 234 | input_device->identifier); |
235 | 235 | ||
236 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) { | 236 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER || |
237 | input_device->wlr_device->type == WLR_INPUT_DEVICE_TABLET_TOOL) { | ||
237 | input_manager_libinput_config_pointer(input_device); | 238 | input_manager_libinput_config_pointer(input_device); |
238 | } | 239 | } |
239 | 240 | ||
@@ -393,7 +394,8 @@ void input_manager_apply_input_config(struct sway_input_manager *input, | |||
393 | wl_list_for_each(input_device, &input->devices, link) { | 394 | wl_list_for_each(input_device, &input->devices, link) { |
394 | if (strcmp(input_device->identifier, input_config->identifier) == 0 | 395 | if (strcmp(input_device->identifier, input_config->identifier) == 0 |
395 | || wildcard) { | 396 | || wildcard) { |
396 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) { | 397 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER || |
398 | input_device->wlr_device->type == WLR_INPUT_DEVICE_TABLET_TOOL) { | ||
397 | input_manager_libinput_config_pointer(input_device); | 399 | input_manager_libinput_config_pointer(input_device); |
398 | } | 400 | } |
399 | 401 | ||