diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-03 20:42:38 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-03 20:42:38 +0100 |
| commit | 10146f5ec50caeae2d835f5f6296137e2ac6f243 (patch) | |
| tree | b5fdff362de5213081bb37d6072980545c531e48 /src/Compositor.cpp | |
| parent | d88d5898807bf6f2462cecfb977b7624dafbf52e (diff) | |
core: fix some crash conditions around workspace ptrs in CWindow
ref #5402, supersedes #5409
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 3b7b5d9b..033af696 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -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) { |
