Move keyboard binding accessor to bindings.[ch]
Rename `get_binding` to `get_keyboard_binding` and ensure that this function only accesses bindings of type B_KEYBOARD. Other types of bindings (e.g. mouse bindings) will be accessed by a different function.
This commit is contained in:
committed by
Michael Stapelberg
parent
0f6c411f06
commit
3d6d0c134c
@ -29,3 +29,10 @@ Binding *configure_binding(const char *bindtype, const char *modifiers, const ch
|
||||
*
|
||||
*/
|
||||
void grab_all_keys(xcb_connection_t *conn, bool bind_mode_switch);
|
||||
|
||||
/**
|
||||
* Returns a pointer to the keyboard Binding with the specified modifiers and
|
||||
* keycode or NULL if no such binding exists.
|
||||
*
|
||||
*/
|
||||
Binding *get_keyboard_binding(uint16_t modifiers, bool key_release, xcb_keycode_t keycode);
|
||||
|
Reference in New Issue
Block a user