diff options
Diffstat (limited to 'sway/config/output.c')
-rw-r--r-- | sway/config/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 1d21e52f..6c716ccb 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, | |||
222 | best = mode; | 222 | best = mode; |
223 | break; | 223 | break; |
224 | } | 224 | } |
225 | best = mode; | 225 | best = mode->refresh > best->refresh ? mode : best; |
226 | } | 226 | } |
227 | } | 227 | } |
228 | if (!best) { | 228 | if (!best) { |