]> git.sur5r.net Git - i3/i3/blob - include/key_press.h
Merge branch 'master' into next
[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 I3_KEY_PRESS_H
11 #define I3_KEY_PRESS_H
12
13 extern pid_t command_error_nagbar_pid;
14
15 /**
16  * There was a key press. We compare this key code with our bindings table and pass
17  * the bound action to parse_command().
18  *
19  */
20 void handle_key_press(xcb_key_press_event_t *event);
21
22 /**
23  * Kills the commanderror i3-nagbar process, if any.
24  *
25  * Called when reloading/restarting, since the user probably fixed his wrong
26  * keybindings.
27  *
28  * If wait_for_it is set (restarting), this function will waitpid(), otherwise,
29  * ev is assumed to handle it (reloading).
30  *
31  */
32 void kill_commanderror_nagbar(bool wait_for_it);
33
34 #endif