Add xkb_names member plus config + X11 support
Add an xkb_names member to the base compositor info which contains the
RMLVO to use when building an XKB keymap. Add support for filling this
from the config file or from the underlying X11 server, with the usual
defaults.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
diff --git a/src/compositor.h b/src/compositor.h
index 0278cf9..64dc349 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -25,6 +25,7 @@
#define _WAYLAND_SYSTEM_COMPOSITOR_H_
#include <pixman.h>
+#include <xkbcommon/xkbcommon.h>
#include <wayland-server.h>
#include <GLES2/gl2.h>
@@ -265,6 +266,10 @@
int launcher_sock;
uint32_t output_id_pool;
+
+ struct {
+ struct xkb_rule_names names;
+ } xkb_info;
};
#define MODIFIER_CTRL (1 << 8)