mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Fix ratbag_button_action_match not matching on type NONE
This commit is contained in:
committed by
Peter Hutterer
parent
baad36060d
commit
8f5fdf8590
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user