input: disable events for map_to_output devices when output not present

Fixes #3449.
This commit is contained in:
Tudor Brindus 2020-06-18 22:26:27 -04:00 committed by Simon Ser
parent d328c2439c
commit b3f08597cd
5 changed files with 44 additions and 17 deletions

View file

@ -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) {