mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-12 04:28:35 -05:00
fix: not apply vrr disalbe when enable it at the beginning
This commit is contained in:
parent
2f25ff6692
commit
8f71d7b666
2 changed files with 4 additions and 0 deletions
|
|
@ -3061,6 +3061,8 @@ void reapply_monitor_rules(void) {
|
|||
|
||||
if (vrr) {
|
||||
enable_adaptive_sync(m, &state);
|
||||
} else {
|
||||
wlr_output_state_set_adaptive_sync_enabled(&state, false);
|
||||
}
|
||||
|
||||
wlr_output_state_set_scale(&state, mr->scale);
|
||||
|
|
|
|||
|
|
@ -2733,6 +2733,8 @@ void createmon(struct wl_listener *listener, void *data) {
|
|||
|
||||
if (vrr) {
|
||||
enable_adaptive_sync(m, &state);
|
||||
} else {
|
||||
wlr_output_state_set_adaptive_sync_enabled(&state, false);
|
||||
}
|
||||
|
||||
wlr_output_state_set_scale(&state, r->scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue