mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-08 13:29:56 -05:00
opt: more fuzzy monitor mode matching
This commit is contained in:
parent
0b83e70d52
commit
7b591ccd4b
1 changed files with 1 additions and 1 deletions
|
|
@ -2456,7 +2456,7 @@ struct wlr_output_mode *get_output_mode(struct wlr_output *output, int width,
|
|||
struct wlr_output_mode *mode;
|
||||
wl_list_for_each(mode, &output->modes, link) {
|
||||
if (mode->width == width && mode->height == height &&
|
||||
(int)(mode->refresh / 1000) == (int)refresh) {
|
||||
(int)round(mode->refresh / 1000) == (int)round(refresh)) {
|
||||
return mode;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue