diff options
author | Konstantin Pospelov <kupospelov@gmail.com> | 2019-03-05 22:38:26 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-04-26 20:56:48 +0300 |
commit | c42497aca00a234679ca5dc2884ab40afe0d84ad (patch) | |
tree | ee0b1521537cd97c943f894a29efa5e4c12bb1e3 /sway/config/input.c | |
parent | bindsym: consider xkb_rule_names for --to-code (diff) | |
download | sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.gz sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.zst sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.zip |
bindsym: change xkb_rule_names initialization
Diffstat (limited to 'sway/config/input.c')
-rw-r--r-- | sway/config/input.c | 17 |
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 | ||
215 | struct xkb_rule_names input_config_get_rule_names(struct input_config *ic) { | 215 | void 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 | ||
227 | void free_input_config(struct input_config *ic) { | 224 | void free_input_config(struct input_config *ic) { |