Move grab_all_keys to bindings.[ch]

Also add checks for binding input_type to filter bindings that are not
keyboard bindings.
This commit is contained in:
Tony Crisci
2014-02-14 18:38:01 -05:00
committed by Michael Stapelberg
parent 00909aa3b1
commit 48ec79ca02
4 changed files with 54 additions and 49 deletions

View File

@ -23,3 +23,9 @@ const char *DEFAULT_BINDING_MODE;
*/
Binding *configure_binding(const char *bindtype, const char *modifiers, const char *input_code,
const char *release, const char *command, const char *mode);
/**
* Grab the bound keys (tell X to send us keypress events for those keycodes)
*
*/
void grab_all_keys(xcb_connection_t *conn, bool bind_mode_switch);