aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/input
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 /sway/commands/input
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 'sway/commands/input')
-rw-r--r--sway/commands/input/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/input/events.c b/sway/commands/input/events.c
index 44bc9e74..cd2985ee 100644
--- a/sway/commands/input/events.c
+++ b/sway/commands/input/events.c
@@ -101,7 +101,7 @@ static void toggle_wildcard_send_events(int argc, char **argv) {
101 } else { 101 } else {
102 toggle_supported_send_events_for_device(ic, input_device); 102 toggle_supported_send_events_for_device(ic, input_device);
103 } 103 }
104 store_input_config(ic); 104 store_input_config(ic, NULL);
105 } 105 }
106} 106}
107 107