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 013abd3fe3
commit ab468de95c

View file

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