From 36ddd0c4086652bfb65d3b3034640e349d5c991b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 20:56:37 +0000 Subject: dont use XKeysymToKeycode because valgrind says it is doing bad things, and we have all the data we need anyways --- openbox/modkeys.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/modkeys.h') 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 +#include /*! 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 -- cgit v1.2.3