]> git.sur5r.net Git - i3/i3/blob - include/key_press.h
Display i3-nagbar when commands lead to an error
[i3/i3] / include / key_press.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2012 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * key_press.c: key press handler
8  *
9  */
10 #ifndef _KEY_PRESS_H
11 #define _KEY_PRESS_H
12
13 /**
14  * There was a key press. We compare this key code with our bindings table and pass
15  * the bound action to parse_command().
16  *
17  */
18 void handle_key_press(xcb_key_press_event_t *event);
19
20 /**
21  * Kills the commanderror i3-nagbar process, if any.
22  *
23  * Called when reloading/restarting, since the user probably fixed his wrong
24  * keybindings.
25  *
26  * If wait_for_it is set (restarting), this function will waitpid(), otherwise,
27  * ev is assumed to handle it (reloading).
28  *
29  */
30 void kill_commanderror_nagbar(bool wait_for_it);
31
32 #endif