]> icculus.org git repositories - dana/openbox.git/blob - openbox/keyboard.h
wip: Add config_parser.c which will provide a nice means to specify config variables...
[dana/openbox.git] / openbox / keyboard.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    keyboard.h for the Openbox window manager
4    Copyright (c) 2006        Mikael Magnusson
5    Copyright (c) 2003-2007   Dana Jansens
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    See the COPYING file for a copy of the GNU General Public License.
18 */
19
20 #ifndef ob__keybaord_h
21 #define ob__keybaord_h
22
23 #include "keytree.h"
24 #include "frame.h"
25
26 #include <glib.h>
27 #include <X11/Xlib.h>
28
29 typedef struct _ObKeyboardKey ObKeyboardKey;
30
31 struct _ObClient;
32 struct _ObActionList;
33
34 extern KeyBindingTree *keyboard_firstnode;
35
36 struct _ObKeyboardKey {
37     guint keycode;
38     guint modifiers;
39 };
40
41 void keyboard_startup(gboolean reconfig);
42 void keyboard_shutdown(gboolean reconfig);
43
44 void keyboard_rebind(void);
45
46 void keyboard_chroot(GList *keylist);
47 gboolean keyboard_bind(GList *keylist, struct _ObActionList *actions);
48 void keyboard_unbind_all(void);
49
50 gboolean keyboard_event(struct _ObClient *client, const XEvent *e);
51 /*! @param break_chroots how many chroots to break. -1 means to break them ALL!
52  */
53 void keyboard_reset_chains(gint break_chroots);
54
55 #endif