Move translate_keysyms to bindings.[ch]
Additionally add a check so the function only handles bindings of type B_KEYBOARD to prepare for the new bindmouse feature.
This commit is contained in:
committed by
Michael Stapelberg
parent
9b03be644f
commit
c5df093f5d
@ -36,3 +36,9 @@ void grab_all_keys(xcb_connection_t *conn, bool bind_mode_switch);
|
||||
*
|
||||
*/
|
||||
Binding *get_keyboard_binding(uint16_t modifiers, bool key_release, xcb_keycode_t keycode);
|
||||
|
||||
/**
|
||||
* Translates keysymbols to keycodes for all bindings which use keysyms.
|
||||
*
|
||||
*/
|
||||
void translate_keysyms(void);
|
||||
|
@ -308,12 +308,6 @@ struct Barconfig {
|
||||
*/
|
||||
void load_configuration(xcb_connection_t *conn, const char *override_configfile, bool reload);
|
||||
|
||||
/**
|
||||
* Translates keysymbols to keycodes for all bindings which use keysyms.
|
||||
*
|
||||
*/
|
||||
void translate_keysyms(void);
|
||||
|
||||
/**
|
||||
* Ungrabs all keys, to be called before re-grabbing the keys because of a
|
||||
* mapping_notify event or a configuration file reload
|
||||
|
Reference in New Issue
Block a user