From 80b7b149250ea76f89a053a4032f0afeb3c3f53f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 15 Nov 2023 18:21:50 +0100 Subject: [PATCH] output/config: skip no-op fixed mode change --- sway/config/output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/config/output.c b/sway/config/output.c index c8f58120..1fba8db9 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -274,6 +274,9 @@ static void set_mode(struct wlr_output *output, struct wlr_output_state *pending } } if (best) { + if (best == output->current_mode) { + return; + } sway_log(SWAY_INFO, "Assigning configured mode (%dx%d@%.3fHz) to %s", best->width, best->height, best->refresh / 1000.f, output->name); } else {