From ddf63ffabefd740bf2afa1addaf6e859d65aba6a Mon Sep 17 00:00:00 2001 From: Konstantin Pospelov Date: Wed, 20 Feb 2019 14:54:59 +0300 Subject: bindsym: consider xkb_rule_names for --to-code --- sway/config/input.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sway/config') diff --git a/sway/config/input.c b/sway/config/input.c index aa581431..595aa029 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -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; -- cgit v1.2.3