mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix rare crash
This commit is contained in:
parent
16283e9e96
commit
02fbc7f34e
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue