i3
|
Go to the source code of this file.
Functions | |
void | handle_key_press (xcb_key_press_event_t *event) |
There was a key press. More... | |
void | kill_commanderror_nagbar (bool wait_for_it) |
Kills the commanderror i3-nagbar process, if any. More... | |
Variables | |
pid_t | command_error_nagbar_pid |
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 73 of file key_press.c.
References BIND_MODE_SWITCH, Binding::command, command_error_nagbar_pid, command_failed, command_output, config, current_nesting_level, DLOG, ELOG, errorfilename, Config::font, get_binding(), CommandResult::json_gen, last_timestamp, CommandResult::needs_tree_render, parse_command(), parse_error_key, Font::pattern, sasprintf(), sstrdup(), start_nagbar(), state, tree_render(), xcb_numlock_mask, and xkb_current_group.
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 his wrong keybindings.
If wait_for_it is set (restarting), this function will waitpid(), otherwise, ev is assumed to handle it (reloading).
pid_t command_error_nagbar_pid |
Definition at line 22 of file key_press.c.
Referenced by cmd_reload(), handle_key_press(), and i3_restart().