1
0
forked from drath/libratbag

fix typo in ratbag_button_action_match

We want the action to be matched, not be different.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
This commit is contained in:
Benjamin Tissoires
2015-09-07 10:04:04 -04:00
parent 4017df40f3
commit 54aea717a5

View File

@@ -336,7 +336,7 @@ ratbag_button_action_match(const struct ratbag_button_action *action,
case RATBAG_BUTTON_ACTION_TYPE_KEY:
return match->action.key.key == action->action.key.key;
case RATBAG_BUTTON_ACTION_TYPE_SPECIAL:
return match->action.special != action->action.special;
return match->action.special == action->action.special;
case RATBAG_BUTTON_ACTION_TYPE_MACRO:
/* FIXME: currently, do nothing */
default: