summaryrefslogtreecommitdiffstats
path: root/sway/tree/output.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-18 22:26:27 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-19 10:02:22 +0200
commitb3f08597cd725ef8136fb3cfb2808be990a6fce8 (patch)
tree316ad2bab978a00fb186300e2e11560b0610b1cb /sway/tree/output.c
parentinput/pointer: don't trigger pointer bindings for emulated input (diff)
downloadsway-b3f08597cd725ef8136fb3cfb2808be990a6fce8.tar.gz
sway-b3f08597cd725ef8136fb3cfb2808be990a6fce8.tar.zst
sway-b3f08597cd725ef8136fb3cfb2808be990a6fce8.zip
input: disable events for map_to_output devices when output not present
Fixes #3449.
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r--sway/tree/output.c5
1 files changed, 5 insertions, 0 deletions
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) {
266 output->current_mode = NULL; 266 output->current_mode = NULL;
267 267
268 arrange_root(); 268 arrange_root();
269
270 // Reconfigure all devices, since devices with map_to_output directives for
271 // an output that goes offline should stop sending events as long as the
272 // output remains offline.
273 input_manager_configure_all_inputs();
269} 274}
270 275
271void output_begin_destroy(struct sway_output *output) { 276void output_begin_destroy(struct sway_output *output) {