From b3f08597cd725ef8136fb3cfb2808be990a6fce8 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Thu, 18 Jun 2020 22:26:27 -0400 Subject: input: disable events for map_to_output devices when output not present Fixes #3449. --- sway/tree/output.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sway/tree') diff --git a/sway/tree/output.c b/sway/tree/output.c index c96c3187..9a10c6a8 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c @@ -266,6 +266,11 @@ void output_disable(struct sway_output *output) { output->current_mode = NULL; arrange_root(); + + // Reconfigure all devices, since devices with map_to_output directives for + // an output that goes offline should stop sending events as long as the + // output remains offline. + input_manager_configure_all_inputs(); } void output_begin_destroy(struct sway_output *output) { -- cgit v1.2.3-54-g00ecf