summaryrefslogtreecommitdiff
path: root/openbox/modkeys.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-09 20:56:37 +0000
committerDana Jansens <danakj@orodu.net>2007-05-09 20:56:37 +0000
commit36ddd0c4086652bfb65d3b3034640e349d5c991b (patch)
tree885b131bc72c0322b279472d55ad831ce6509762 /openbox/modkeys.h
parentb8309807ab8e18686db148fc46323237b9103787 (diff)
dont use XKeysymToKeycode because valgrind says it is doing bad things, and we have all the data we need anyways
Diffstat (limited to 'openbox/modkeys.h')
-rw-r--r--openbox/modkeys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/modkeys.h b/openbox/modkeys.h
index cfa95b04..8f222369 100644
--- a/openbox/modkeys.h
+++ b/openbox/modkeys.h
@@ -20,6 +20,7 @@
#define ob__modkeys_h
#include <glib.h>
+#include <X11/Xlib.h>
/*! These keys are bound to the modifier masks in any fashion */
typedef enum {
@@ -51,4 +52,8 @@ guint modkeys_only_modifier_masks(guint mask);
right keys when there are both. */
guint modkeys_key_to_mask(ObModkeysKey key);
+/*! Convert a KeySym to a KeyCode, because the X function is terrible - says
+ valgrind. */
+KeyCode modkeys_sym_to_code(KeySym sym);
+
#endif