opt: monitor rule fallback to custom mode

This commit is contained in:
DreamMaoMao 2025-09-02 10:45:43 +08:00
parent d6ddd9311e
commit 15fc158dc4
2 changed files with 8 additions and 0 deletions

View file

@ -2494,6 +2494,10 @@ void reapply_monitor_rules(void) {
mr->height, mr->refresh);
if (internal_mode) {
wlr_output_state_set_mode(&state, internal_mode);
} else {
wlr_output_state_set_custom_mode(
&state, mr->width, mr->height,
(int)roundf(mr->refresh * 1000));
}
}