aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 19b9989a..9720bbf3 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -388,6 +388,17 @@ static void queue_output_config(struct output_config *oc,
388 oc->adaptive_sync); 388 oc->adaptive_sync);
389 wlr_output_enable_adaptive_sync(wlr_output, oc->adaptive_sync == 1); 389 wlr_output_enable_adaptive_sync(wlr_output, oc->adaptive_sync == 1);
390 } 390 }
391
392 // Reconfigure all devices, since input config may have been applied before
393 // this output came online, and some config items (like map_to_output) are
394 // dependent on an output being present.
395 struct sway_input_device *input_device = NULL;
396 wl_list_for_each(input_device, &server.input->devices, link) {
397 struct sway_seat *seat = NULL;
398 wl_list_for_each(seat, &server.input->seats, link) {
399 seat_configure_device(seat, input_device);
400 }
401 }
391} 402}
392 403
393bool apply_output_config(struct output_config *oc, struct sway_output *output) { 404bool apply_output_config(struct output_config *oc, struct sway_output *output) {