diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-02-17 13:02:32 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 19:02:32 +0100 |
| commit | d01f9943e1d401b09fc53be3c161279ab4f2c5ba (patch) | |
| tree | 99657baf4bc0551aa9ae926c6ca3a027247aa646 /src/desktop/Popup.cpp | |
| parent | 59c615c321c45302491de3b1c003844c86aefca7 (diff) | |
subsurfaces: dont try to access popup surfaces when handling subsurface updates (#9421)
Diffstat (limited to 'src/desktop/Popup.cpp')
| -rw-r--r-- | src/desktop/Popup.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index 82767ead..912069e7 100644 --- a/src/desktop/Popup.cpp +++ b/src/desktop/Popup.cpp @@ -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; +} |
