Fix ratbag_button_action_match not matching on type NONE

This commit is contained in:
Yaroslav Chvanov
2022-01-31 14:47:29 +03:00
committed by Peter Hutterer
parent baad36060d
commit 8f5fdf8590

View File

@@ -462,6 +462,8 @@ ratbag_button_action_match(const struct ratbag_button_action *action,
return 0;
switch (action->type) {
case RATBAG_BUTTON_ACTION_TYPE_NONE:
return 1;
case RATBAG_BUTTON_ACTION_TYPE_BUTTON:
return match->action.button == action->action.button;
case RATBAG_BUTTON_ACTION_TYPE_KEY: