From 7036769bea886ab1f9d627785f14cea9e25b16f7 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 16 Nov 2023 14:56:46 +0100 Subject: Only reconfigure input mappings on output change Fully reconfiguring all input devices on output change takes a loooong time. Let's just reconfigure what we need: only mappings depend on outputs. --- sway/tree/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/tree') diff --git a/sway/tree/output.c b/sway/tree/output.c index 0960f413..4aa3a7fe 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c @@ -277,7 +277,7 @@ void output_disable(struct sway_output *output) { // 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(); + input_manager_configure_all_input_mappings(); } void output_begin_destroy(struct sway_output *output) { -- cgit v1.2.3