subsurfaces: dont try to access popup surfaces when handling subsurface updates (#9421)

This commit is contained in:
nyx 2025-02-17 13:02:32 -05:00 committed by GitHub
parent 59c615c321
commit d01f9943e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -282,6 +282,9 @@ void CPopup::recheckTree() {
}
void CPopup::recheckChildrenRecursive() {
if (m_bInert || !m_pWLSurface)
return;
std::vector<WP<CPopup>> cpy;
std::ranges::for_each(m_vChildren, [&cpy](const auto& el) { cpy.emplace_back(el); });
for (auto const& c : cpy) {
@ -367,3 +370,7 @@ WP<CPopup> CPopup::at(const Vector2D& globalCoords, bool allowsInput) {
return {};
}
bool CPopup::inert() const {
return m_bInert;
}