From eb02620d6c50619a31e711d15d58c76a22c4699c Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 3 Apr 2024 21:37:00 +0100 Subject: [PATCH] expo: block screen shaders when drawing previews fixes #109 --- hyprexpo/overview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hyprexpo/overview.cpp b/hyprexpo/overview.cpp index 85e000f..1d7d9a3 100644 --- a/hyprexpo/overview.cpp +++ b/hyprexpo/overview.cpp @@ -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;