Skip to content

Commit

Permalink
expo: block screen shaders when drawing previews
Browse files Browse the repository at this point in the history
fixes #109
  • Loading branch information
vaxerski committed Apr 3, 2024
1 parent f76fb09 commit eb02620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hyprexpo/overview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eb02620

Please sign in to comment.