diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-06-18 22:26:27 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-06-19 10:02:22 +0200 |
commit | b3f08597cd725ef8136fb3cfb2808be990a6fce8 (patch) | |
tree | 316ad2bab978a00fb186300e2e11560b0610b1cb /sway/config | |
parent | d328c2439c47fbbb24f74fd26e1a88ad8aaa3ace (diff) |
input: disable events for map_to_output devices when output not present
Fixes #3449.
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 713cd219..68aafbe1 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -481,14 +481,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) { // Reconfigure all devices, since input config may have been applied before // this output came online, and some config items (like map_to_output) are // dependent on an output being present. - struct sway_input_device *input_device = NULL; - wl_list_for_each(input_device, &server.input->devices, link) { - struct sway_seat *seat = NULL; - wl_list_for_each(seat, &server.input->seats, link) { - seat_configure_device(seat, input_device); - } - } - + input_manager_configure_all_inputs(); return true; } |