diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 8ae5a014..466cee46 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -507,8 +507,9 @@ void CHyprRenderer::renderAllClientsForMonitor(const int& ID, timespec* time) { renderIMEPopup(&imep, PMONITOR, time); } - for (auto& ls : PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY]) { - renderLayer(ls.get(), PMONITOR, time); + for (auto ls = PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY].rbegin(); ls != PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY].rend(); + ls++) { + renderLayer(ls->get(), PMONITOR, time); } renderDragIcon(PMONITOR, time);