From 5e9008046846093140eeaf7187150b04670fbc94 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 11 Feb 2020 14:09:15 +0100 Subject: [PATCH] Call apply_output_config instead of output_enable apply_output_config will call output_enable if necessary. This fixes a lone wlr_output_enable call (without a matching wlr_output_commit call) which was a no-op. --- sway/desktop/output.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sway/desktop/output.c b/sway/desktop/output.c index afe43d2ce..ec662a8c5 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -896,11 +896,7 @@ void handle_new_output(struct wl_listener *listener, void *data) { output_repaint_timer_handler, output); struct output_config *oc = find_output_config(output); - if (!oc || oc->enabled) { - output_enable(output, oc); - } else { - wlr_output_enable(output->wlr_output, false); - } + apply_output_config(oc, output); free_output_config(oc); transaction_commit_dirty();