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:
committed by
Michael Stapelberg
parent
ea551e4d99
commit
02ff10aadb
@ -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);
|
||||
|
Reference in New Issue
Block a user