input/keyboard: expose keymap matching helper

sway needs this logic too, and currently ships a version that has fallen
behind in terms of bugfixes (b1a63bc).
This commit is contained in:
Tudor Brindus 2020-05-07 22:15:26 -04:00 committed by Brian Ashworth
parent 6357e166f9
commit 064f64dbf7
3 changed files with 24 additions and 18 deletions

View file

@ -105,6 +105,9 @@ struct wlr_event_keyboard_key {
bool wlr_keyboard_set_keymap(struct wlr_keyboard *kb,
struct xkb_keymap *keymap);
bool wlr_keyboard_keymaps_match(struct xkb_keymap *km1, struct xkb_keymap *km2);
/**
* Sets the keyboard repeat info. `rate` is in key repeats/second and delay is
* in milliseconds.