aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config
diff options
context:
space:
mode:
authorLibravatar Konstantin Pospelov <kupospelov@gmail.com>2019-03-05 22:38:26 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2019-04-26 20:56:48 +0300
commitc42497aca00a234679ca5dc2884ab40afe0d84ad (patch)
treeee0b1521537cd97c943f894a29efa5e4c12bb1e3 /sway/config
parentbindsym: consider xkb_rule_names for --to-code (diff)
downloadsway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.gz
sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.zst
sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.zip
bindsym: change xkb_rule_names initialization
Diffstat (limited to 'sway/config')
-rw-r--r--sway/config/input.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sway/config/input.c b/sway/config/input.c
index 595aa029..9c533e71 100644
--- a/sway/config/input.c
+++ b/sway/config/input.c
@@ -212,16 +212,13 @@ struct input_config *store_input_config(struct input_config *ic) {
212 return ic; 212 return ic;
213} 213}
214 214
215struct xkb_rule_names input_config_get_rule_names(struct input_config *ic) { 215void input_config_fill_rule_names(struct input_config *ic,
216 struct xkb_rule_names rules = { 216 struct xkb_rule_names *rules) {
217 .layout = ic->xkb_layout, 217 rules->layout = ic->xkb_layout;
218 .model = ic->xkb_model, 218 rules->model = ic->xkb_model;
219 .options = ic->xkb_options, 219 rules->options = ic->xkb_options;
220 .rules = ic->xkb_rules, 220 rules->rules = ic->xkb_rules;
221 .variant = ic->xkb_variant, 221 rules->variant = ic->xkb_variant;
222 };
223
224 return rules;
225} 222}
226 223
227void free_input_config(struct input_config *ic) { 224void free_input_config(struct input_config *ic) {