diff --git a/sway/config/output.c b/sway/config/output.c index 1d21e52f3..6c716ccbf 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -222,7 +222,7 @@ static bool set_mode(struct wlr_output *output, int width, int height, best = mode; break; } - best = mode; + best = mode->refresh > best->refresh ? mode : best; } } if (!best) {