core: fix some crash conditions around workspace ptrs in CWindow
ref #5402, supersedes #5409
This commit is contained in:
parent
d88d589880
commit
10146f5ec5
2 changed files with 5 additions and 2 deletions
|
|
@ -1241,7 +1241,7 @@ CWindow* CCompositor::getFullscreenWindowOnWorkspace(const int& ID) {
|
|||
}
|
||||
|
||||
bool CCompositor::isWorkspaceVisible(PHLWORKSPACE w) {
|
||||
return w->m_bVisible;
|
||||
return valid(w) && w->m_bVisible;
|
||||
}
|
||||
|
||||
PHLWORKSPACE CCompositor::getWorkspaceByID(const int& id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue