From 53bc81f6fe7d5424ff32a51573a13971d2bf0dd2 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Sun, 4 Oct 2020 16:03:55 +0200 Subject: [PATCH] sinowealth: use macro action with keycode_from_macro() --- src/driver-sinowealth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 90958961..da5c9536 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -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,