From f33dcd4c604fa24058f6cbaf692831420dc5db67 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Mon, 4 Nov 2019 22:24:00 -0700 Subject: Prefer higher refresh rate default modes --- sway/config/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/config') 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) { -- cgit v1.2.3