i3
Functions
key_press.h File Reference
This graph shows which files directly or indirectly include this file:

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.
 

Function Documentation

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 235 of file key_press.c.

References BIND_MODE_SWITCH, Binding::command, command_failed, command_output, current_nesting_level, DLOG, ELOG, get_binding(), CommandResult::json_gen, last_timestamp, CommandResult::needs_tree_render, parse_command(), parse_error_key, sstrdup(), start_commanderror_nagbar(), state, tree_render(), xcb_numlock_mask, and xkb_current_group.

Referenced by handle_event().

Here is the call graph for this function:

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).

Definition at line 169 of file key_press.c.

References nagbar_pid.

Referenced by cmd_reload(), and i3_restart().