From 064f64dbf7a5e71116cb03d8d45aaaf0ee69312e Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Thu, 7 May 2020 22:15:26 -0400 Subject: 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). --- include/wlr/types/wlr_keyboard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h index 616e2218..c3e36054 100644 --- a/include/wlr/types/wlr_keyboard.h +++ b/include/wlr/types/wlr_keyboard.h @@ -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. -- cgit v1.2.3