diff options
author | Konstantin Pospelov <kupospelov@gmail.com> | 2019-02-20 14:54:59 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-04-26 20:56:48 +0300 |
commit | ddf63ffabefd740bf2afa1addaf6e859d65aba6a (patch) | |
tree | d9bbf2dbe7ade0b7c4121a3afcaa2bfd4b5488f9 /sway/config | |
parent | d27a5e1cb0f14e939d47497ebc49cfb422cc947b (diff) | |
download | sway-ddf63ffabefd740bf2afa1addaf6e859d65aba6a.tar.xz |
bindsym: consider xkb_rule_names for --to-code
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/input.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |