fix snapshots on scaled

This commit is contained in:
vaxerski 2022-07-30 22:22:51 +02:00
parent adeab98831
commit 45747fb8e6

View file

@ -753,10 +753,10 @@ void CHyprOpenGLImpl::makeWindowSnapshot(CWindow* pWindow) {
const auto BLURVAL = g_pConfigManager->getInt("decoration:blur");
g_pConfigManager->setInt("decoration:blur", 0);
m_bEndFrame = true;
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, !pWindow->m_bX11DoesntWantBorders, RENDER_PASS_ALL);
m_bEndFrame = true;
g_pConfigManager->setInt("decoration:blur", BLURVAL);
// render onto the window fb
@ -816,8 +816,6 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) {
timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
m_bEndFrame = true;
// draw the layer
g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now);