src/config/rcxml.c: allow clearing key/mouse bindings

Fixes #567
This commit is contained in:
Consolatis 2023-01-29 04:06:46 +01:00
parent 14a0c83ae0
commit 4a8b50603e
9 changed files with 115 additions and 18 deletions

View file

@ -137,6 +137,17 @@ context_from_str(const char *str)
return LAB_SSD_NONE;
}
bool
mousebind_the_same(struct mousebind *a, struct mousebind *b)
{
assert(a && b);
return a->context == b->context
&& a->button == b->button
&& a->direction == b->direction
&& a->mouse_event == b->mouse_event
&& a->modifiers == b->modifiers;
}
struct mousebind *
mousebind_create(const char *context)
{