Move check_for_duplicate_bindings to bindings.[ch]

Additionally add a check for the same input_type (mouse or keyboard).
Bindings with different input types cannot be duplicates.
This commit is contained in:
Tony Crisci
2014-04-22 21:41:28 -04:00
committed by Michael Stapelberg
parent ea551e4d99
commit 02ff10aadb
3 changed files with 62 additions and 49 deletions

View File

@ -48,3 +48,12 @@ void translate_keysyms(void);
*
*/
void switch_mode(const char *new_mode);
/**
* Checks for duplicate key bindings (the same keycode or keysym is configured
* more than once). If a duplicate binding is found, a message is printed to
* stderr and the has_errors variable is set to true, which will start
* i3-nagbar.
*
*/
void check_for_duplicate_bindings(struct context *context);