mirror of https://github.com/hyprwm/Hypr.git
fix rare crash
This commit is contained in:
parent
16283e9e96
commit
02fbc7f34e
|
@ -372,14 +372,14 @@ void CWindowManager::refreshDirtyWindows() {
|
||||||
|
|
||||||
setEffectiveSizePosUsingConfig(&window);
|
setEffectiveSizePosUsingConfig(&window);
|
||||||
|
|
||||||
// Fullscreen flag
|
|
||||||
bool bHasFullscreenWindow = getWorkspaceByID(window.getWorkspaceID())->getHasFullscreenWindow();
|
|
||||||
|
|
||||||
const auto PWORKSPACE = getWorkspaceByID(window.getWorkspaceID());
|
const auto PWORKSPACE = getWorkspaceByID(window.getWorkspaceID());
|
||||||
|
|
||||||
if (!PWORKSPACE)
|
if (!PWORKSPACE)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Fullscreen flag
|
||||||
|
bool bHasFullscreenWindow = PWORKSPACE->getHasFullscreenWindow();
|
||||||
|
|
||||||
// first and foremost, let's check if the window isn't on a hidden workspace
|
// first and foremost, let's check if the window isn't on a hidden workspace
|
||||||
// or an animated workspace
|
// or an animated workspace
|
||||||
if (!isWorkspaceVisible(window.getWorkspaceID())
|
if (!isWorkspaceVisible(window.getWorkspaceID())
|
||||||
|
|
Loading…
Reference in New Issue