aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-06-05 14:16:37 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-06-09 20:13:22 +0300
commit5b1a8d62b9c8fa7c25b70e01910abd761fae9855 (patch)
tree173ef18191acf9dfb84b3bb76c43ee8108f4cd89 /include/sway
parentcommands/input: perform basic keymap validation (diff)
downloadsway-5b1a8d62b9c8fa7c25b70e01910abd761fae9855.tar.gz
sway-5b1a8d62b9c8fa7c25b70e01910abd761fae9855.tar.zst
sway-5b1a8d62b9c8fa7c25b70e01910abd761fae9855.zip
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.
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 311adb16..57ae3c63 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -581,7 +581,7 @@ struct input_config *new_input_config(const char* identifier);
581 581
582void merge_input_config(struct input_config *dst, struct input_config *src); 582void merge_input_config(struct input_config *dst, struct input_config *src);
583 583
584struct input_config *store_input_config(struct input_config *ic); 584struct input_config *store_input_config(struct input_config *ic, char **error);
585 585
586void input_config_fill_rule_names(struct input_config *ic, 586void input_config_fill_rule_names(struct input_config *ic,
587 struct xkb_rule_names *rules); 587 struct xkb_rule_names *rules);