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 | |
parent | ddf63ffabefd740bf2afa1addaf6e859d65aba6a (diff) | |
download | sway-c42497aca00a234679ca5dc2884ab40afe0d84ad.tar.xz |
bindsym: change xkb_rule_names initialization
Diffstat (limited to 'sway/config')
-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) { return ic; } -struct xkb_rule_names input_config_get_rule_names(struct input_config *ic) { - struct xkb_rule_names rules = { - .layout = ic->xkb_layout, - .model = ic->xkb_model, - .options = ic->xkb_options, - .rules = ic->xkb_rules, - .variant = ic->xkb_variant, - }; - - return rules; +void input_config_fill_rule_names(struct input_config *ic, + struct xkb_rule_names *rules) { + rules->layout = ic->xkb_layout; + rules->model = ic->xkb_model; + rules->options = ic->xkb_options; + rules->rules = ic->xkb_rules; + rules->variant = ic->xkb_variant; } void free_input_config(struct input_config *ic) { |