From c903430e3f3fd3d4741de150e5d2f92477e53f29 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 20 Jul 2022 19:10:42 +0200 Subject: [PATCH] 6 --- src/events/Layers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 795d24ad..51494b19 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -195,7 +195,7 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { g_pHyprRenderer->damageBox(&geomFixed); // fix if it changed its mon - /*if ((uint64_t)layersurface->monitorID != PMONITOR->ID) { + if ((uint64_t)layersurface->monitorID != PMONITOR->ID) { const auto POLDMON = g_pCompositor->getMonitorFromID(layersurface->monitorID); POLDMON->m_aLayerSurfaceLists[layersurface->layer].remove(layersurface); PMONITOR->m_aLayerSurfaceLists[layersurface->layer].push_back(layersurface); @@ -213,8 +213,8 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { layersurface->layer = layersurface->layerSurface->current.layer; } - g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID); - }*/ + //g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID); + } layersurface->position = Vector2D(layersurface->geometry.x, layersurface->geometry.y);