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/Subsurface.cpp | |
| parent | 59c615c321c45302491de3b1c003844c86aefca7 (diff) | |
subsurfaces: dont try to access popup surfaces when handling subsurface updates (#9421)
Diffstat (limited to 'src/desktop/Subsurface.cpp')
| -rw-r--r-- | src/desktop/Subsurface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop/Subsurface.cpp b/src/desktop/Subsurface.cpp index db106a09..9846764c 100644 --- a/src/desktop/Subsurface.cpp +++ b/src/desktop/Subsurface.cpp @@ -107,7 +107,7 @@ void CSubsurface::onCommit() { g_pHyprRenderer->damageSurface(m_pWLSurface->resource(), COORDS.x, COORDS.y); - if (m_pPopupParent) + if (m_pPopupParent && !m_pPopupParent->inert() && m_pPopupParent->m_pWLSurface) m_pPopupParent->recheckTree(); if (!m_pWindowParent.expired()) // I hate you firefox why are you doing this m_pWindowParent->m_pPopupHead->recheckTree(); @@ -124,7 +124,7 @@ void CSubsurface::onCommit() { // g_pHyprRenderer->damageBox(box); CBox box; - if (m_pPopupParent) + if (m_pPopupParent && !m_pPopupParent->inert() && m_pPopupParent->m_pWLSurface) box = m_pPopupParent->m_pWLSurface->getSurfaceBoxGlobal().value_or(CBox{}); else if (m_pWindowParent) box = m_pWindowParent->getWindowMainSurfaceBox(); |
