1
0
forked from drath/libratbag

sinowealth: use macro action with keycode_from_macro()

This commit is contained in:
Marian Beermann
2020-10-04 16:03:55 +02:00
committed by Thomas H.P. Andersen
parent ff215126b2
commit 53bc81f6fe

View File

@@ -499,7 +499,7 @@ sinowealth_write_buttons(struct ratbag_profile *profile)
if (action->type == RATBAG_BUTTON_ACTION_TYPE_BUTTON) {
button_data->type = SINOWEALTH_BUTTON_TYPE_BUTTON;
button_data->data[0] = sinowealth_button_action_to_raw(action);
} else if (action->type == RATBAG_BUTTON_ACTION_TYPE_KEY) {
} else if (action->type == RATBAG_BUTTON_ACTION_TYPE_MACRO) {
unsigned int key, modifiers;
rc = ratbag_action_keycode_from_macro(action,