From cc7c85ffdf34d12e7f5f9eb1b53285cbfd55ecba Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Fri, 21 Aug 2015 16:59:36 -0400 Subject: [PATCH] hidpp20: fix reading of button mapping When the button is not redirected, we need to rely on the control_id, not the task_id to get the logical action of the button. Signed-off-by: Benjamin Tissoires --- src/driver-hidpp20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index c8bc0d67..6e31f485 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -82,7 +82,7 @@ hidpp20drv_read_button(struct ratbag_button *button) return; control = &drv_data->controls[button->index]; - mapping = control->task_id; + mapping = control->control_id; if (control->reporting.divert || control->reporting.persist) mapping = control->reporting.remapped; log_debug(device->ratbag,