diff options
| author | Gwen <gwenpark37@gmail.com> | 2025-06-04 01:56:21 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-03 15:56:21 +0000 |
| commit | a7186a0441fe866784a601c6192850267802dca5 (patch) | |
| tree | 7cb151d4de5d70757b74c547d293666e1da6d98a /src/backend | |
| parent | 1911cf3f55ac3d9d24c8692434a93214dcbde9ba (diff) | |
| download | niri-a7186a0441fe866784a601c6192850267802dca5.tar.gz niri-a7186a0441fe866784a601c6192850267802dca5.tar.bz2 niri-a7186a0441fe866784a601c6192850267802dca5.zip | |
Add debug option to skip cursor-only updates while VRR is active (#1616)
* Add debug option to skip cursor-only updates while VRR is active
* Update niri-config/src/lib.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
* Update src/backend/tty.rs
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
* Update wiki/Configuration:-Debug-Options.md
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
* Update Configuration:-Debug-Options.md
* Update tty.rs
* Update lib.rs
* Update Configuration:-Debug-Options.md
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/tty.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 363526d4..3b5cd31c 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -1422,6 +1422,12 @@ impl Tty { if debug.disable_cursor_plane { flags.remove(FrameFlags::ALLOW_CURSOR_PLANE_SCANOUT); } + if debug.skip_cursor_only_updates_during_vrr { + let output_state = niri.output_state.get(output).unwrap(); + if output_state.frame_clock.vrr() { + flags.insert(FrameFlags::SKIP_CURSOR_ONLY_UPDATES); + } + } flags }; |
