mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-04 04:06:21 -05:00
fix: not apply vrr disalbe when enable it at the beginning
This commit is contained in:
parent
d9f679a8e3
commit
672706c71f
2 changed files with 4 additions and 0 deletions
|
|
@ -3198,6 +3198,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);
|
||||
|
|
|
|||
|
|
@ -2777,6 +2777,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