From 8707a9b7ecbba0321804604d9ea954a46ecced21 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 24 Mar 2020 00:18:18 +0100 Subject: Return false on wlr_keyboard_set_keymap() failure This allows users of the library to handle or ignore the error as they see fit. --- include/wlr/types/wlr_keyboard.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_keyboard.h b/include/wlr/types/wlr_keyboard.h index 9bd4acd9..616e2218 100644 --- a/include/wlr/types/wlr_keyboard.h +++ b/include/wlr/types/wlr_keyboard.h @@ -103,7 +103,7 @@ struct wlr_event_keyboard_key { enum wlr_key_state state; }; -void wlr_keyboard_set_keymap(struct wlr_keyboard *kb, +bool wlr_keyboard_set_keymap(struct wlr_keyboard *kb, struct xkb_keymap *keymap); /** * Sets the keyboard repeat info. `rate` is in key repeats/second and delay is -- cgit v1.2.3