]> icculus.org git repositories - dana/openbox.git/blob - openbox/keyboard.h
dont waste a strdup which is never freed
[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                                struct _ObAction *action);
25 gboolean keyboard_process_interactive_grab(const XEvent *e,
26                                            struct _ObClient **client);
27
28 void keyboard_grab_for_client(struct _ObClient *c, gboolean grab);
29
30 #endif