evdev: allow hooking directly into libxkbcommon

A wayland compositor needs to have more keyboard state than
ClutterModifierState exposes, so it makes sense for it to use
xkb_state directly. Also, it makes sense for it to provide
it's own keymap, to ensure a consistent view between the compositor
and the wayland clients.

https://bugzilla.gnome.org/show_bug.cgi?id=705710
This commit is contained in:
Giovanni Campagna
2013-08-09 17:06:39 +02:00
parent 786532213b
commit 8c358f18b1
2 changed files with 79 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include <glib.h>
#include <glib-object.h>
#include <xkbcommon/xkbcommon.h>
#include <clutter/clutter.h>
G_BEGIN_DECLS
@ -50,6 +51,10 @@ void clutter_evdev_set_open_callback (ClutterOpenDeviceCallback callback,
void clutter_evdev_release_devices (void);
void clutter_evdev_reclaim_devices (void);
struct xkb_state * clutter_evdev_get_keyboard_state (ClutterDeviceManager *evdev);
void clutter_evdev_set_keyboard_map (ClutterDeviceManager *evdev,
struct xkb_keymap *keymap);
G_END_DECLS
#endif /* __CLUTTER_EVDEV_H__ */