core: assert attempted UAFs in windowExists

in prep of removing the thing altogether
This commit is contained in:
Vaxry 2024-04-02 01:15:58 +01:00
parent c377caee7a
commit af3a61a4e4

View file

@ -704,6 +704,11 @@ bool CCompositor::windowExists(CWindow* pWindow) {
return true; return true;
} }
// FIXME: this is here only temporarily,
// remove this func altogether if no reports
// of this being hit.
RASSERT(!pWindow, "windowExists: attempted UAF");
return false; return false;
} }
@ -1388,7 +1393,7 @@ bool CCompositor::isWindowActive(CWindow* pWindow) {
if (!m_pLastWindow && !m_pLastFocus) if (!m_pLastWindow && !m_pLastFocus)
return false; return false;
if (!windowValidMapped(pWindow)) if (!pWindow->m_bIsMapped)
return false; return false;
const auto PSURFACE = pWindow->m_pWLSurface.wlr(); const auto PSURFACE = pWindow->m_pWLSurface.wlr();