aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2020-05-07 22:15:26 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2020-05-07 23:10:03 -0400
commit064f64dbf7a5e71116cb03d8d45aaaf0ee69312e (patch)
treee59deee649104b02845a296384286aa964dbfb5b /include
parent6357e166f9a31f0c828ea5bb0000627c15442505 (diff)
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).
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_keyboard.h3
1 files changed, 3 insertions, 0 deletions
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.