fix that for laggy pcs

This commit is contained in:
vaxerski 2022-01-19 19:49:53 +01:00
parent 02fbc7f34e
commit 4d7592bf5f

View file

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