Skip to content

Commit 0d83025

Browse files
committed
opt: more fuzzy monitor mode matching
1 parent 50fcb5e commit 0d83025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mango.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ struct wlr_output_mode *get_output_mode(struct wlr_output *output, int width,
25042504
struct wlr_output_mode *mode;
25052505
wl_list_for_each(mode, &output->modes, link) {
25062506
if (mode->width == width && mode->height == height &&
2507-
(int)(mode->refresh / 1000) == (int)refresh) {
2507+
(int)round(mode->refresh / 1000) == (int)round(refresh)) {
25082508
return mode;
25092509
}
25102510
}

0 commit comments

Comments
 (0)