core: ensure m_pLastMonitor validity over unsafe state

ref #5241
This commit is contained in:
Vaxry
2024-03-26 02:26:09 +00:00
parent 414e37996d
commit a9d7526aae
3 changed files with 7 additions and 1 deletions

View File

@@ -2808,6 +2808,8 @@ void CCompositor::enterUnsafeState() {
m_pUnsafeOutput->onConnect(false);
m_bUnsafeState = true;
setActiveMonitor(m_pUnsafeOutput);
}
void CCompositor::leaveUnsafeState() {