renderer: avoid double-rendering ls-es on fadingOut

fixes #5295
This commit is contained in:
Vaxry 2024-04-04 22:43:57 +01:00
parent 0569b9c300
commit ec2cc79c65

View file

@ -661,7 +661,8 @@ void CHyprRenderer::renderWindow(CWindow* pWindow, CMonitor* pMonitor, timespec*
void CHyprRenderer::renderLayer(SLayerSurface* pLayer, CMonitor* pMonitor, timespec* time, bool popups) {
if (pLayer->fadingOut) {
g_pHyprOpenGL->renderSnapshot(&pLayer);
if (!popups)
g_pHyprOpenGL->renderSnapshot(&pLayer);
return;
}