render overlay layers in reverse

prevents stuff leaking when locked
This commit is contained in:
Vaxry 2022-12-27 15:25:51 +01:00
parent 545e63d1dd
commit 659a5195d4

View file

@ -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);