input: Add core API to update the keymap
How and when to update the keymap is left to each backend.
The new keymap only becomes effective when no keys are pressed and we
keep latched and locked modifiers from the previous state.
diff --git a/src/compositor.h b/src/compositor.h
index 8ae757b..5b813fc 100644
--- a/src/compositor.h
+++ b/src/compositor.h
@@ -485,6 +485,7 @@
struct xkb_state *state;
enum weston_led leds;
} xkb_state;
+ struct xkb_keymap *pending_keymap;
struct input_method *input_method;
char *seat_name;
@@ -1179,6 +1180,8 @@
weston_seat_release_touch(struct weston_seat *seat);
void
weston_seat_repick(struct weston_seat *seat);
+void
+weston_seat_update_keymap(struct weston_seat *seat, struct xkb_keymap *keymap);
void
weston_seat_release(struct weston_seat *seat);