mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
Use an enum instead of a marker string for map_to_
This commit is contained in:
parent
4829f1c26a
commit
7f54495b5e
5 changed files with 45 additions and 40 deletions
|
|
@ -134,6 +134,9 @@ void merge_input_config(struct input_config *dst, struct input_config *src) {
|
|||
memcpy(dst->mapped_from_region, src->mapped_from_region,
|
||||
sizeof(struct input_config_mapped_from_region));
|
||||
}
|
||||
if (src->mapped_to) {
|
||||
dst->mapped_to = src->mapped_to;
|
||||
}
|
||||
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