i3
|
#include <config.h>
Go to the source code of this file.
Functions | |
void | handle_key_press (xcb_key_press_event_t *event) |
There was a key press. | |
void | kill_commanderror_nagbar (bool wait_for_it) |
Kills the commanderror i3-nagbar process, if any. | |
void handle_key_press | ( | xcb_key_press_event_t * | event | ) |
There was a key press.
We compare this key code with our bindings table and pass the bound action to parse_command().
Definition at line 18 of file key_press.c.
References command_result_free(), DLOG, get_binding_from_xcb_event(), last_timestamp, and run_binding().
Referenced by handle_event().
void kill_commanderror_nagbar | ( | bool | wait_for_it | ) |
Kills the commanderror i3-nagbar process, if any.
Called when reloading/restarting, since the user probably fixed their wrong keybindings.
If wait_for_it is set (restarting), this function will waitpid(), otherwise, ev is assumed to handle it (reloading).