output/config: skip no-op fixed mode change

This commit is contained in:
Simon Ser 2023-11-15 18:21:50 +01:00
parent b03d8f685e
commit 80b7b14925

View file

@ -274,6 +274,9 @@ static void set_mode(struct wlr_output *output, struct wlr_output_state *pending
} }
} }
if (best) { if (best) {
if (best == output->current_mode) {
return;
}
sway_log(SWAY_INFO, "Assigning configured mode (%dx%d@%.3fHz) to %s", sway_log(SWAY_INFO, "Assigning configured mode (%dx%d@%.3fHz) to %s",
best->width, best->height, best->refresh / 1000.f, output->name); best->width, best->height, best->refresh / 1000.f, output->name);
} else { } else {