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 <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2015-09-15 10:37:17 -04:00
parent ee0c58ca35
commit 892497ca60

View File

@@ -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);