rootston: add missing properties to kb config merge

This commit is contained in:
Tony Crisci 2017-11-09 17:47:59 -05:00
parent 739361aa70
commit d6513cef5d

View file

@ -230,6 +230,12 @@ static void keyboard_config_merge(struct keyboard_config *config,
if (config->options == NULL) { if (config->options == NULL) {
config->options = fallback->options; config->options = fallback->options;
} }
if (config->meta_key == 0) {
config->meta_key = fallback->meta_key;
}
if (config->name == NULL) {
config->name = fallback->name;
}
} }
struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device, struct roots_keyboard *roots_keyboard_create(struct wlr_input_device *device,