layershell: minor fixes to re-mapping of layers

ref #2012
This commit is contained in:
Vaxry
2024-06-12 22:57:06 +02:00
parent 38132ffaf5
commit 18ee9ece9c
3 changed files with 22 additions and 2 deletions

View File

@@ -1361,6 +1361,10 @@ void CCompositor::addToFadingOutSafe(PHLLS pLS) {
m_vSurfacesFadingOut.emplace_back(pLS);
}
void CCompositor::removeFromFadingOutSafe(PHLLS ls) {
std::erase(m_vSurfacesFadingOut, ls);
}
void CCompositor::addToFadingOutSafe(PHLWINDOW pWindow) {
const auto FOUND = std::find_if(m_vWindowsFadingOut.begin(), m_vWindowsFadingOut.end(), [&](PHLWINDOWREF& other) { return other.lock() == pWindow; });