core: fix null ref when resuming system (#9794)
* core: fix null ref when resuming system * e
This commit is contained in:
parent
10a335631e
commit
8aaffda969
1 changed files with 4 additions and 2 deletions
|
|
@ -2154,11 +2154,13 @@ void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMo
|
||||||
|
|
||||||
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with new {}", nextWorkspaceOnMonitorID);
|
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with new {}", nextWorkspaceOnMonitorID);
|
||||||
|
|
||||||
g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID);
|
if (POLDMON)
|
||||||
|
g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing {}", nextWorkspaceOnMonitorID);
|
Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing {}", nextWorkspaceOnMonitorID);
|
||||||
POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true);
|
if (POLDMON)
|
||||||
|
POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// move the workspace
|
// move the workspace
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue