From 892497ca6000a37d1a5d388a53a5e3df01d49b52 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 15 Sep 2015 10:37:17 -0400 Subject: [PATCH] roccat: retrieve the macro if we are not in the default profile When the macro is not on profile 0, we need to set the mouse in the correct mode first. Signed-off-by: Benjamin Tissoires --- src/driver-roccat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/driver-roccat.c b/src/driver-roccat.c index 1b68c107..a26397b0 100644 --- a/src/driver-roccat.c +++ b/src/driver-roccat.c @@ -661,6 +661,9 @@ roccat_read_button(struct ratbag_button *button) if (action && action->type == RATBAG_BUTTON_ACTION_TYPE_MACRO) { + roccat_set_config_profile(device, + button->profile->index, + 0); roccat_set_config_profile(device, button->profile->index, button->index);