mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:45:59 +01:00
fix snapshots on scaled
This commit is contained in:
parent
adeab98831
commit
45747fb8e6
1 changed files with 2 additions and 4 deletions
|
@ -753,10 +753,10 @@ void CHyprOpenGLImpl::makeWindowSnapshot(CWindow* pWindow) {
|
||||||
const auto BLURVAL = g_pConfigManager->getInt("decoration:blur");
|
const auto BLURVAL = g_pConfigManager->getInt("decoration:blur");
|
||||||
g_pConfigManager->setInt("decoration:blur", 0);
|
g_pConfigManager->setInt("decoration:blur", 0);
|
||||||
|
|
||||||
m_bEndFrame = true;
|
|
||||||
|
|
||||||
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, !pWindow->m_bX11DoesntWantBorders, RENDER_PASS_ALL);
|
g_pHyprRenderer->renderWindow(pWindow, PMONITOR, &now, !pWindow->m_bX11DoesntWantBorders, RENDER_PASS_ALL);
|
||||||
|
|
||||||
|
m_bEndFrame = true;
|
||||||
|
|
||||||
g_pConfigManager->setInt("decoration:blur", BLURVAL);
|
g_pConfigManager->setInt("decoration:blur", BLURVAL);
|
||||||
|
|
||||||
// render onto the window fb
|
// render onto the window fb
|
||||||
|
@ -816,8 +816,6 @@ void CHyprOpenGLImpl::makeLayerSnapshot(SLayerSurface* pLayer) {
|
||||||
timespec now;
|
timespec now;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &now);
|
clock_gettime(CLOCK_MONOTONIC, &now);
|
||||||
|
|
||||||
m_bEndFrame = true;
|
|
||||||
|
|
||||||
// draw the layer
|
// draw the layer
|
||||||
g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now);
|
g_pHyprRenderer->renderLayer(pLayer, PMONITOR, &now);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue