From 7babcf7e6a8429af78577b97228dfc39624977b3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 25 Jul 2022 23:53:43 +0200 Subject: [PATCH] arrange after switch --- src/events/Layers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 92200d04..cc5d935f 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -234,8 +234,6 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { } if (layersurface->layerSurface->current.committed != 0) { - g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID); - if (layersurface->layer != layersurface->layerSurface->current.layer) { for (auto it = PMONITOR->m_aLayerSurfaceLists[layersurface->layer].begin(); it != PMONITOR->m_aLayerSurfaceLists[layersurface->layer].end(); it++) { @@ -249,6 +247,8 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { layersurface->layer = layersurface->layerSurface->current.layer; } + g_pHyprRenderer->arrangeLayersForMonitor(PMONITOR->ID); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PMONITOR->ID); }