Pull in XKB_COMMON_* version of modifier masks
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Oct 2010 19:07:44 +0000 (15:07 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 8 Oct 2010 19:07:53 +0000 (15:07 -0400)
This way we can use libxkbcommon without having to include X.h.

include/X11/extensions/XKBcommon.h

index 89e2009..c1bc270 100644 (file)
@@ -64,6 +64,18 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
 typedef unsigned char KeyCode;
 #endif
 
+/* Duplicate the modifier mask defines so libxkcommon can be used
+ * without X.h */
+#define XKB_COMMON_SHIFT_MASK          (1<<0)
+#define XKB_COMMON_LOCK_MASK           (1<<1)
+#define XKB_COMMON_CONTROL_MASK                (1<<2)
+#define XKB_COMMON_MOD1_MASK           (1<<3)
+#define XKB_COMMON_MOD2_MASK           (1<<4)
+#define XKB_COMMON_MOD3_MASK           (1<<5)
+#define XKB_COMMON_MOD4_MASK           (1<<6)
+#define XKB_COMMON_MOD5_MASK           (1<<7)
+
+
 struct xkb_rule_names {
     const char *  rules;
     const char *  model;