aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-08 20:36:56 -0500
committerGitHub <noreply@github.com>2019-01-08 20:36:56 -0500
commitda8f24de1d3d5843142be1164919ca6a49155ae9 (patch)
tree2860bf37ab36ec5e106fbd44c9751d3f5f626ddb
parent140bc2dd5b81205df58bf06e695788e689fae397 (diff)
parent145ac2c571aad7dd8417bb9cf04407e607be0083 (diff)
downloadsway-da8f24de1d3d5843142be1164919ca6a49155ae9.tar.xz
Merge pull request #3385 from robertgzr/reset_output_mapping
cursor: allow mapping to all outputs
-rw-r--r--sway/input/seat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 52790039..41a3a4df 100644
--- 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,