aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Robert Günzler <r@gnzler.io>2019-01-09 01:52:19 +0100
committerLibravatar Robert Günzler <r@gnzler.io>2019-01-09 02:33:30 +0100
commit145ac2c571aad7dd8417bb9cf04407e607be0083 (patch)
tree8918fc4f912c88edaa71ef6cab280aed5f8b2927 /sway/input/seat.c
parentFixed formulations. (diff)
downloadsway-145ac2c571aad7dd8417bb9cf04407e607be0083.tar.gz
sway-145ac2c571aad7dd8417bb9cf04407e607be0083.tar.zst
sway-145ac2c571aad7dd8417bb9cf04407e607be0083.zip
cursor: allow mapping to all outputs
Running `input "<input>" map_to_output *` resets the mapping to all outputs
Diffstat (limited to 'sway/input/seat.c')
-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 9422713d..e8b2cdcf 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,
428 if (mapped_to_output != NULL) { 428 if (mapped_to_output != NULL) {
429 wlr_log(WLR_DEBUG, "Mapping input device %s to output %s", 429 wlr_log(WLR_DEBUG, "Mapping input device %s to output %s",
430 sway_device->input_device->identifier, mapped_to_output); 430 sway_device->input_device->identifier, mapped_to_output);
431 if (strcmp("*", mapped_to_output) == 0) {
432 wlr_cursor_map_input_to_output(seat->cursor->cursor,
433 sway_device->input_device->wlr_device, NULL);
434 wlr_log(WLR_DEBUG, "Reset output mapping");
435 return;
436 }
431 struct sway_output *output = output_by_name_or_id(mapped_to_output); 437 struct sway_output *output = output_by_name_or_id(mapped_to_output);
432 if (output) { 438 if (output) {
433 wlr_cursor_map_input_to_output(seat->cursor->cursor, 439 wlr_cursor_map_input_to_output(seat->cursor->cursor,