From 659a5195d40cf94a560c2cd66473c889624f9a2f Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 27 Dec 2022 15:25:51 +0100 Subject: [PATCH] render overlay layers in reverse prevents stuff leaking when locked --- src/render/Renderer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);