mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
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:
@ -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__ */
|
||||
|
Reference in New Issue
Block a user