expo: block screen shaders when drawing previews

fixes #109
This commit is contained in:
Vaxry 2024-04-03 21:37:00 +01:00
parent f76fb09ff9
commit eb02620d6c

View file

@ -141,6 +141,7 @@ COverview::COverview(PHLWORKSPACE startedOn_, bool swipe_) : startedOn(startedOn
image.box = {(i % SIDE_LENGTH) * tileRenderSize.x + (i % SIDE_LENGTH) * GAP_WIDTH, (i / SIDE_LENGTH) * tileRenderSize.y + (i / SIDE_LENGTH) * GAP_WIDTH, tileRenderSize.x,
tileRenderSize.y};
g_pHyprOpenGL->m_RenderData.blockScreenShader = true;
g_pHyprRenderer->endRender();
}
@ -257,6 +258,7 @@ void COverview::redrawID(int id, bool forcelowres) {
} else
g_pHyprRenderer->renderWorkspace(pMonitor, PWORKSPACE, &now, monbox);
g_pHyprOpenGL->m_RenderData.blockScreenShader = true;
g_pHyprRenderer->endRender();
pMonitor->activeSpecialWorkspace = openSpecial;