diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2019-11-04 22:24:00 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-11-05 10:34:44 +0100 |
commit | f33dcd4c604fa24058f6cbaf692831420dc5db67 (patch) | |
tree | 63d5dc6e3ce0c6aadd71f80b7712024e8ad23233 /sway | |
parent | smart_borders: separate smartness from edge types (diff) | |
download | sway-f33dcd4c604fa24058f6cbaf692831420dc5db67.tar.gz sway-f33dcd4c604fa24058f6cbaf692831420dc5db67.tar.zst sway-f33dcd4c604fa24058f6cbaf692831420dc5db67.zip |
Prefer higher refresh rate default modes
Diffstat (limited to 'sway')
-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) { |