This commit is contained in:
Martin Fischer 2025-10-01 10:33:26 +01:00 committed by GitHub
commit 1fe60f7732
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,10 +117,13 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
free(dst->xkb_file);
dst->xkb_file = src->xkb_file ? strdup(src->xkb_file) : NULL;
dst->xkb_file_is_set = dst->xkb_file != NULL;
dst->xkb_layout = NULL;
}
if (src->xkb_layout) {
free(dst->xkb_layout);
dst->xkb_layout = strdup(src->xkb_layout);
dst->xkb_file = NULL;
dst->xkb_file_is_set = false;
}
if (src->xkb_model) {
free(dst->xkb_model);