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/input.c | |
parent | bindsym: update the man page to include --to-code (diff) | |
download | sway-ddf63ffabefd740bf2afa1addaf6e859d65aba6a.tar.gz sway-ddf63ffabefd740bf2afa1addaf6e859d65aba6a.tar.zst sway-ddf63ffabefd740bf2afa1addaf6e859d65aba6a.zip |
bindsym: consider xkb_rule_names for --to-code
Diffstat (limited to 'sway/config/input.c')
-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) { | |||
212 | return ic; | 212 | return ic; |
213 | } | 213 | } |
214 | 214 | ||
215 | struct xkb_rule_names input_config_get_rule_names(struct input_config *ic) { | ||
216 | struct xkb_rule_names rules = { | ||
217 | .layout = ic->xkb_layout, | ||
218 | .model = ic->xkb_model, | ||
219 | .options = ic->xkb_options, | ||
220 | .rules = ic->xkb_rules, | ||
221 | .variant = ic->xkb_variant, | ||
222 | }; | ||
223 | |||
224 | return rules; | ||
225 | } | ||
226 | |||
215 | void free_input_config(struct input_config *ic) { | 227 | void free_input_config(struct input_config *ic) { |
216 | if (!ic) { | 228 | if (!ic) { |
217 | return; | 229 | return; |