commit da8f24de1d3d5843142be1164919ca6a49155ae9
parent 140bc2dd5b81205df58bf06e695788e689fae397
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 8 Jan 2019 20:36:56 -0500
Merge pull request #3385 from robertgzr/reset_output_mapping
cursor: allow mapping to all outputs
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/sway/input/seat.c b/sway/input/seat.c
@@ -428,6 +428,12 @@ static void seat_apply_input_config(struct sway_seat *seat,
if (mapped_to_output != NULL) {
wlr_log(WLR_DEBUG, "Mapping input device %s to output %s",
sway_device->input_device->identifier, mapped_to_output);
+ if (strcmp("*", mapped_to_output) == 0) {
+ wlr_cursor_map_input_to_output(seat->cursor->cursor,
+ sway_device->input_device->wlr_device, NULL);
+ wlr_log(WLR_DEBUG, "Reset output mapping");
+ return;
+ }
struct sway_output *output = output_by_name_or_id(mapped_to_output);
if (output) {
wlr_cursor_map_input_to_output(seat->cursor->cursor,