aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config/output.c2
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,
best = mode;
break;
}
- best = mode;
+ best = mode->refresh > best->refresh ? mode : best;
}
}
if (!best) {