summaryrefslogtreecommitdiff
path: root/sway/commands/input/map_to_region.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/input/map_to_region.c')
-rw-r--r--sway/commands/input/map_to_region.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/commands/input/map_to_region.c b/sway/commands/input/map_to_region.c
index e0b69ed5..e85495e5 100644
--- a/sway/commands/input/map_to_region.c
+++ b/sway/commands/input/map_to_region.c
@@ -15,9 +15,7 @@ struct cmd_results *input_cmd_map_to_region(int argc, char **argv) {
return cmd_results_new(CMD_FAILURE, "No input device defined");
}
- // This is used to clear the current output mapping.
- ic->mapped_to_output = strdup("");
-
+ ic->mapped_to = MAPPED_TO_REGION;
ic->mapped_to_region = calloc(1, sizeof(struct wlr_box));
const char *errstr;