bindsym: consider xkb_rule_names for --to-code

This commit is contained in:
Konstantin Pospelov 2019-02-20 14:54:59 +03:00 committed by Simon Ser
parent d27a5e1cb0
commit ddf63ffabe
5 changed files with 40 additions and 31 deletions

View file

@ -212,6 +212,18 @@ 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 free_input_config(struct input_config *ic) {
if (!ic) {
return;