From 57d8eacd3eaa2253e936279c53e42479bc7db69b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 20 Jul 2022 23:37:33 +0200 Subject: [PATCH] 12 --- src/render/Renderer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 822074c5..cea02d98 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -603,11 +603,11 @@ void CHyprRenderer::arrangeLayersForMonitor(const int& monitor) { wlr_box usableArea = {PMONITOR->vecPosition.x, PMONITOR->vecPosition.y, PMONITOR->vecSize.x, PMONITOR->vecSize.y}; - for (auto& la : PMONITOR->m_aLayerSurfaceLists) - arrangeLayerArray(PMONITOR, la, true, &usableArea); + // for (auto& la : PMONITOR->m_aLayerSurfaceLists) + // arrangeLayerArray(PMONITOR, la, true, &usableArea); - for (auto& la : PMONITOR->m_aLayerSurfaceLists) - arrangeLayerArray(PMONITOR, la, false, &usableArea); + // for (auto& la : PMONITOR->m_aLayerSurfaceLists) + // arrangeLayerArray(PMONITOR, la, false, &usableArea); PMONITOR->vecReservedTopLeft = Vector2D(usableArea.x, usableArea.y) - PMONITOR->vecPosition; PMONITOR->vecReservedBottomRight = PMONITOR->vecSize - Vector2D(usableArea.width, usableArea.height) - PMONITOR->vecReservedTopLeft; @@ -617,8 +617,8 @@ void CHyprRenderer::arrangeLayersForMonitor(const int& monitor) { PMONITOR->vecReservedBottomRight = PMONITOR->vecReservedBottomRight + Vector2D(ENTRY.right, ENTRY.bottom); // damage the monitor if can - // if (PMONITOR->damage) - // damageMonitor(PMONITOR); + if (PMONITOR->damage) + damageMonitor(PMONITOR); Debug::log(LOG, "Monitor %s layers arranged: reserved: %f %f %f %f", PMONITOR->szName.c_str(), PMONITOR->vecReservedTopLeft.x, PMONITOR->vecReservedTopLeft.y, PMONITOR->vecReservedBottomRight.x, PMONITOR->vecReservedBottomRight.y); }