29 const char *release,
const char *border,
const char *whole_window,
30 const char *exclude_titlebar,
const char *command,
const char *mode,
xcb_connection_t * conn
XCB connection and root screen.
Binding * configure_binding(const char *bindtype, const char *modifiers, const char *input_code, const char *release, const char *border, const char *whole_window, const char *exclude_titlebar, const char *command, const char *mode, bool pango_markup)
Adds a binding from config parameters given as strings and returns a pointer to the binding structure...
void binding_free(Binding *bind)
Frees the binding.
void check_for_duplicate_bindings(struct context *context)
Checks for duplicate key bindings (the same keycode or keysym is configured more than once).
bool load_keymap(void)
Loads the XKB keymap from the X11 server and feeds it to xkbcommon.
void grab_all_keys(xcb_connection_t *conn)
Grab the bound keys (tell X to send us keypress events for those keycodes)
const char * DEFAULT_BINDING_MODE
The name of the default mode.
Binding * get_binding_from_xcb_event(xcb_generic_event_t *event)
Returns a pointer to the Binding that matches the given xcb event or NULL if no such binding exists.
void regrab_all_buttons(xcb_connection_t *conn)
Release the button grabs on all managed windows and regrab them, reevaluating which buttons need to b...
int * bindings_get_buttons_to_grab(void)
Returns a list of buttons that should be grabbed on a window.
void switch_mode(const char *new_mode)
Switches the key bindings to the given mode, if the mode exists.
pid_t command_error_nagbar_pid
CommandResult * run_binding(Binding *bind, Con *con)
Runs the given binding and handles parse errors.
void reorder_bindings(void)
Reorders bindings by event_state_mask descendingly so that get_binding() correctly matches more speci...
void translate_keysyms(void)
Translates keysymbols to keycodes for all bindings which use keysyms.
A struct that contains useful information about the result of a command as a whole (e....
Used during the config file lexing/parsing to keep the state of the lexer in order to provide useful ...
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
A 'Con' represents everything from the X11 root window down to a single X11 window.