add a reconfigure action, also reconfigure on SIGUSR2.
[dana/openbox.git] / openbox / keyboard.h
1 #ifndef ob__keybaord_h
2 #define ob__keybaord_h
3
4 #include "keytree.h"
5 #include "frame.h"
6
7 #include <glib.h>
8 #include <X11/Xlib.h>
9
10 struct _ObClient;
11 struct _ObAction;
12
13 extern KeyBindingTree *keyboard_firstnode;
14
15 void keyboard_startup(gboolean reconfig);
16 void keyboard_shutdown(gboolean reconfig);
17
18 gboolean keyboard_bind(GList *keylist, ObAction *action);
19
20 void keyboard_event(struct _ObClient *client, const XEvent *e);
21 void keyboard_reset_chains();
22
23 void keyboard_interactive_grab(guint state, struct _ObClient *client,
24                                ObFrameContext context,
25                                struct _ObAction *action);
26 gboolean keyboard_process_interactive_grab(const XEvent *e,
27                                            struct _ObClient **client,
28                                            ObFrameContext *context);
29
30 void keyboard_grab_for_client(struct _ObClient *c, gboolean grab);
31
32 #endif