From cb98242ea7faff04dad3ae166aff7126184f17c5 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 22 Jan 2023 17:03:25 +0100 Subject: remove old comment and fixup lsl var name --- src/Compositor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index baf8b030..aac5aef4 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1197,7 +1197,7 @@ void CCompositor::cleanupFadingOut(const int& monid) { // sometimes somehow fucking happens wtf bool exists = false; for (auto& m : m_vMonitors) { - for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& lsl : m->m_aLayerSurfaceLayers) { for (auto& lsp : lsl) { if (lsp.get() == ls) { exists = true; @@ -1233,7 +1233,7 @@ void CCompositor::cleanupFadingOut(const int& monid) { g_pHyprOpenGL->m_mLayerFramebuffers.erase(ls); for (auto& m : m_vMonitors) { - for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& lsl : m->m_aLayerSurfaceLayers) { if (!lsl.empty() && std::find_if(lsl.begin(), lsl.end(), [&](std::unique_ptr& other) { return other.get() == ls; }) != lsl.end()) { std::erase_if(lsl, [&](std::unique_ptr& other) { return other.get() == ls; }); } @@ -1890,7 +1890,7 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode } } - for (auto& ls : PMONITOR->m_aLayerSurfaceLists[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) { + for (auto& ls : PMONITOR->m_aLayerSurfaceLayers[ZWLR_LAYER_SHELL_V1_LAYER_TOP]) { if (!ls->fadingOut) ls->alpha = pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL ? 0.f : 1.f; } @@ -2022,7 +2022,7 @@ void CCompositor::warpCursorTo(const Vector2D& pos) { SLayerSurface* CCompositor::getLayerSurfaceFromWlr(wlr_layer_surface_v1* pLS) { for (auto& m : m_vMonitors) { - for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& lsl : m->m_aLayerSurfaceLayers) { for (auto& ls : lsl) { if (ls->layerSurface == pLS) return ls.get(); @@ -2041,7 +2041,7 @@ void CCompositor::closeWindow(CWindow* pWindow) { SLayerSurface* CCompositor::getLayerSurfaceFromSurface(wlr_surface* pSurface) { for (auto& m : m_vMonitors) { - for (auto& lsl : m->m_aLayerSurfaceLists) { + for (auto& lsl : m->m_aLayerSurfaceLayers) { for (auto& ls : lsl) { if (ls->layerSurface && ls->layerSurface->surface == pSurface) return ls.get(); -- cgit v1.2.3