mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
bindsym: change xkb_rule_names initialization
This commit is contained in:
parent
ddf63ffabe
commit
c42497aca0
4 changed files with 14 additions and 17 deletions
|
|
@ -212,16 +212,13 @@ 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 input_config_fill_rule_names(struct input_config *ic,
|
||||
struct xkb_rule_names *rules) {
|
||||
rules->layout = ic->xkb_layout;
|
||||
rules->model = ic->xkb_model;
|
||||
rules->options = ic->xkb_options;
|
||||
rules->rules = ic->xkb_rules;
|
||||
rules->variant = ic->xkb_variant;
|
||||
}
|
||||
|
||||
void free_input_config(struct input_config *ic) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue