X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fbindings.h;h=19345f8c82ad6c6144d8c7bbde53f849bceb86eb;hb=dd5be77d1dcc7e7eb40ce1c33f985816fc0b8f79;hp=e2acc313485a805898a90ccac2ba922e858db2fb;hpb=a6c6e3e3a0efdcc5423a876fff22525b5da378c3;p=i3%2Fi3 diff --git a/include/bindings.h b/include/bindings.h index e2acc313..19345f8c 100644 --- a/include/bindings.h +++ b/include/bindings.h @@ -24,7 +24,7 @@ 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); + const char *release, const char *whole_window, const char *command, const char *mode); /** * Grab the bound keys (tell X to send us keypress events for those keycodes) @@ -60,6 +60,11 @@ void switch_mode(const char *new_mode); */ void check_for_duplicate_bindings(struct context *context); +/** + * Frees the binding. If bind is null, it simply returns. + */ +void binding_free(Binding *bind); + /** * Runs the given binding and handles parse errors. If con is passed, it will * execute the command binding with that container selected by criteria.