diff options
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; |