From a9f40498413a058ede88d271faf4252aebf9eeb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vuchener?= Date: Thu, 23 Mar 2017 14:21:42 +0100 Subject: [PATCH] driver-hidpp20: do not divert button when remapping Temporary diversion has priority over remapping and should not be set at the same time. --- 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 ad83dacb..ea30c3e7 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -300,7 +300,7 @@ hidpp20drv_write_button_1b04(struct ratbag_button *button, if (!mapping) return -EINVAL; - control->reporting.divert = 1; + control->reporting.divert = 0; control->reporting.remapped = mapping; control->reporting.updated = 1;