diff options
author | Vaxry <[email protected]> | 2024-06-09 22:28:51 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-06-10 00:06:42 +0200 |
commit | 1423707dbefc0329e80895451903a77ab684f7ea (patch) | |
tree | 046e0592451a0470387a0ac649535d7263582e9e /src/render/Renderer.cpp | |
parent | 121c6ac3eae1601a1498e52a9be7030ebfed242c (diff) | |
download | Hyprland-1423707dbefc0329e80895451903a77ab684f7ea.tar.gz Hyprland-1423707dbefc0329e80895451903a77ab684f7ea.zip |
output: remove wl_output globals for mirrored displays
ref #6387
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r-- | src/render/Renderer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 17f91d48..8fac5869 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1353,7 +1353,7 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { } } else g_pHyprRenderer->renderWindow(pMonitor->solitaryClient.lock(), pMonitor, &now, false, RENDER_PASS_MAIN /* solitary = no popups */); - } else { + } else if (!pMonitor->isMirror()) { sendFrameEventsToWorkspace(pMonitor, pMonitor->activeWorkspace, &now); if (pMonitor->activeSpecialWorkspace) sendFrameEventsToWorkspace(pMonitor, pMonitor->activeSpecialWorkspace, &now); @@ -1869,6 +1869,9 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR !memcmp(&pMonitor->customDrmMode, &RULE->drmMode, sizeof(pMonitor->customDrmMode))) { Debug::log(LOG, "Not applying a new rule to {} because it's already applied!", pMonitor->szName); + + pMonitor->setMirror(RULE->mirrorOf); + return true; } |