mirror of
https://github.com/swaywm/sway.git
synced 2026-03-14 05:34:18 -04: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
|
|
@ -482,11 +482,9 @@ void sway_keyboard_configure(struct sway_keyboard *keyboard) {
|
|||
struct wlr_input_device *wlr_device =
|
||||
keyboard->seat_device->input_device->wlr_device;
|
||||
|
||||
struct xkb_rule_names rules;
|
||||
struct xkb_rule_names rules = {0};
|
||||
if (input_config) {
|
||||
rules = input_config_get_rule_names(input_config);
|
||||
} else {
|
||||
memset(&rules, 0, sizeof(rules));
|
||||
input_config_fill_rule_names(input_config, &rules);
|
||||
}
|
||||
|
||||
if (!rules.layout) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue