From 9fe409800ba5466017be8dfa16a55ca9833a416e Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:29:41 +0200 Subject: 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 --- src/config/ConfigManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config/ConfigManager.cpp') 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 -- cgit v1.2.3