forked from drath/libratbag
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user