diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2025-08-22 20:24:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-22 18:24:25 +0100 |
| commit | 0d45b277d6c750377b336034b8adc53eae238d91 (patch) | |
| tree | 0489c239e9ef6ab6e3c1ee70b8baa03d7b5cf2d7 /src/desktop/Popup.cpp | |
| parent | e95ba5bf5911fbc5e33d10e3f1ae1291f906a19f (diff) | |
internal: Solitary clients with single subsurface & verbose solitary/tearing/DS checks (#11228)
Adds more verbose checks for various conditional rendering mechanisms
Diffstat (limited to 'src/desktop/Popup.cpp')
| -rw-r--r-- | src/desktop/Popup.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index 7dc8ad53..e7a60af2 100644 --- a/src/desktop/Popup.cpp +++ b/src/desktop/Popup.cpp @@ -385,6 +385,9 @@ void CPopup::bfHelper(std::vector<WP<CPopup>> const& nodes, std::function<void(W nodes2.reserve(nodes.size() * 2); for (auto const& n : nodes) { + if (!n) + continue; + for (auto const& c : n->m_children) { nodes2.push_back(c->m_self); } @@ -395,6 +398,9 @@ void CPopup::bfHelper(std::vector<WP<CPopup>> const& nodes, std::function<void(W } void CPopup::breadthfirst(std::function<void(WP<CPopup>, void*)> fn, void* data) { + if (!m_self) + return; + std::vector<WP<CPopup>> popups; popups.push_back(m_self); bfHelper(popups, fn, data); |
