Return false on wlr_keyboard_set_keymap() failure

This allows users of the library to handle or ignore the error as they
see fit.
This commit is contained in:
Isaac Freund 2020-03-24 00:18:18 +01:00 committed by Simon Ser
parent c682d97841
commit 8707a9b7ec
2 changed files with 4 additions and 3 deletions

View file

@ -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