mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:25:57 +01:00
core: assert attempted UAFs in windowExists
in prep of removing the thing altogether
This commit is contained in:
parent
c377caee7a
commit
af3a61a4e4
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue