aboutsummaryrefslogtreecommitdiff
path: root/sway/config
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2019-11-04 22:24:00 -0700
committerSimon Ser <contact@emersion.fr>2019-11-05 10:34:44 +0100
commitf33dcd4c604fa24058f6cbaf692831420dc5db67 (patch)
tree63d5dc6e3ce0c6aadd71f80b7712024e8ad23233 /sway/config
parent3975ca28c2e870eb3f40bbd43a90354743f7ccf1 (diff)
Prefer higher refresh rate default modes
Diffstat (limited to 'sway/config')
-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) {