fix rare crash

This commit is contained in:
vaxerski 2022-01-19 19:45:32 +01:00
parent 16283e9e96
commit 02fbc7f34e

View file

@ -372,14 +372,14 @@ void CWindowManager::refreshDirtyWindows() {
setEffectiveSizePosUsingConfig(&window);
// Fullscreen flag
bool bHasFullscreenWindow = getWorkspaceByID(window.getWorkspaceID())->getHasFullscreenWindow();
const auto PWORKSPACE = getWorkspaceByID(window.getWorkspaceID());
if (!PWORKSPACE)
continue;
// Fullscreen flag
bool bHasFullscreenWindow = PWORKSPACE->getHasFullscreenWindow();
// first and foremost, let's check if the window isn't on a hidden workspace
// or an animated workspace
if (!isWorkspaceVisible(window.getWorkspaceID())