From 0ec0048c6621d4448a76fff206160da9dab66981 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 20 Jul 2022 19:02:43 +0200 Subject: [PATCH] 4 --- 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 5b9a7729..0cfd7f43 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -195,14 +195,14 @@ 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); layersurface->monitorID = PMONITOR->ID; g_pLayoutManager->getCurrentLayout()->recalculateMonitor(POLDMON->ID); g_pHyprRenderer->arrangeLayersForMonitor(POLDMON->ID); - } + }*/ if (layersurface->layerSurface->current.committed != 0) { g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID); @@ -221,5 +221,5 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { // update geom if it changed layersurface->geometry = {layersurface->geometry.x, layersurface->geometry.y, layersurface->layerSurface->surface->current.width, layersurface->layerSurface->surface->current.height}; - // g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y); + g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y); } \ No newline at end of file