mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Add map_from_region command
This commit is contained in:
parent
d94bb78ff3
commit
ff61df17ff
11 changed files with 160 additions and 25 deletions
|
|
@ -96,9 +96,16 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
|
|||
free(dst->xkb_variant);
|
||||
dst->xkb_variant = strdup(src->xkb_variant);
|
||||
}
|
||||
if (src->mapped_output) {
|
||||
free(dst->mapped_output);
|
||||
dst->mapped_output = strdup(src->mapped_output);
|
||||
if (src->mapped_from_region) {
|
||||
free(dst->mapped_from_region);
|
||||
dst->mapped_from_region =
|
||||
malloc(sizeof(struct input_config_mapped_from_region));
|
||||
memcpy(dst->mapped_from_region, src->mapped_from_region,
|
||||
sizeof(struct input_config_mapped_from_region));
|
||||
}
|
||||
if (src->mapped_to_output) {
|
||||
free(dst->mapped_to_output);
|
||||
dst->mapped_to_output = strdup(src->mapped_to_output);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue