diff options
author | Tadeo Kondrak <me@tadeo.ca> | 2019-11-01 11:37:29 -0600 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-17 13:34:24 +0100 |
commit | 7f54495b5e62a65627cdb61f099e241f0594a6d9 (patch) | |
tree | a0480453d0721ab7df31a43c1e45c7fd7dbeb3d5 /sway/config | |
parent | 4829f1c26a521a4ef6659d91505112cc0be8d237 (diff) | |
download | sway-7f54495b5e62a65627cdb61f099e241f0594a6d9.tar.xz |
Use an enum instead of a marker string for map_to_
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/config/input.c b/sway/config/input.c index 294ed08f..0993e9ab 100644 --- a/sway/config/input.c +++ b/sway/config/input.c @@ -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); |