diff options
| author | Virt <41426325+VirtCode@users.noreply.github.com> | 2024-04-24 17:29:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 16:29:41 +0100 |
| commit | 9fe409800ba5466017be8dfa16a55ca9833a416e (patch) | |
| tree | bf3974d131f0a387588e938c29704085b2b70132 /src/config/ConfigManager.cpp | |
| parent | 8aecd4f253a102a2afa4edd3e502106eb3626d86 (diff) | |
renderer: Fix mirrored displays when transformed and preserve aspect ratio (#5697)
* renderer: transform mirror buffer and preserve mirror aspect ratio
* renderer: render mirrors directly from offloadFB
* renderer: fix formatting
* renderer: use monitorMirrorFB again, but properly damage mirrors
* renderer: clean mirrors after reload and support cursor zoom mirroring
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index dda56530..4b5bbbf7 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -826,6 +826,10 @@ void CConfigManager::postConfigReload(const Hyprlang::CParseResult& result) { // Force the compositor to fully re-render all monitors m->forceFullFrames = 2; + + // also force mirrors, as the aspect ratio could've changed + for (auto& mirror : m->mirrors) + mirror->forceFullFrames = 3; } // Reset no monitor reload |
