opt: optimzie func name

This commit is contained in:
DreamMaoMao 2025-09-17 12:04:10 +08:00
parent 50e4a49c2e
commit 13e90496ef
2 changed files with 10 additions and 9 deletions

View file

@ -2737,8 +2737,8 @@ void reapply_monitor_rules(void) {
}
if (mr->width > 0 && mr->height > 0 && mr->refresh > 0) {
internal_mode = get_output_mode(m->wlr_output, mr->width,
mr->height, mr->refresh);
internal_mode = get_nearest_output_mode(
m->wlr_output, mr->width, mr->height, mr->refresh);
if (internal_mode) {
wlr_output_state_set_mode(&state, internal_mode);
} else if (wlr_output_is_headless(m->wlr_output)) {