mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
bindsym: consider xkb_rule_names for --to-code
This commit is contained in:
parent
d27a5e1cb0
commit
ddf63ffabe
5 changed files with 40 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue