aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-09-24 12:46:52 +0100
committerIan Fan <ianfan0@gmail.com>2018-09-24 12:49:20 +0100
commit6194a445d3b10e8afc968712faccdd1d127a8beb (patch)
tree0a3a9ce74f189ccde3ad7d488fe326f978f2d58e /sway/input
parenta032925ae7667e917f2bd8d1b77de97b400b3bf7 (diff)
downloadsway-6194a445d3b10e8afc968712faccdd1d127a8beb.tar.xz
input: enable configuring tablets with libinput
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/input-manager.c6
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) {
wlr_log(WLR_DEBUG, "adding device: '%s'",
input_device->identifier);
- if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) {
+ if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER ||
+ input_device->wlr_device->type == WLR_INPUT_DEVICE_TABLET_TOOL) {
input_manager_libinput_config_pointer(input_device);
}
@@ -393,7 +394,8 @@ void input_manager_apply_input_config(struct sway_input_manager *input,
wl_list_for_each(input_device, &input->devices, link) {
if (strcmp(input_device->identifier, input_config->identifier) == 0
|| wildcard) {
- if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER) {
+ if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER ||
+ input_device->wlr_device->type == WLR_INPUT_DEVICE_TABLET_TOOL) {
input_manager_libinput_config_pointer(input_device);
}