mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
config/input: validate xkb keymap before storing
This allows for an optional validation stage when storing an input config. Currently, only the xkb keymap is validated. If storing the delta input config will result in any invalid xkb keymaps, the input config will not be stored and error will be populated with the first line of the xkbcommon log.
This commit is contained in:
parent
be2d2a299a
commit
5b1a8d62b9
4 changed files with 111 additions and 38 deletions
|
|
@ -581,7 +581,7 @@ struct input_config *new_input_config(const char* identifier);
|
|||
|
||||
void merge_input_config(struct input_config *dst, struct input_config *src);
|
||||
|
||||
struct input_config *store_input_config(struct input_config *ic);
|
||||
struct input_config *store_input_config(struct input_config *ic, char **error);
|
||||
|
||||
void input_config_fill_rule_names(struct input_config *ic,
|
||||
struct xkb_rule_names *rules);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue