diff options
| author | vaxerski <vaxry@vaxry.net> | 2025-01-04 00:10:10 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2025-01-04 00:10:21 +0100 |
| commit | 2e6e0e9278614406979f63692cdb3a015e54c248 (patch) | |
| tree | 6f1dfd52b2d0b6b3671e69156f734d2cc367d470 /src/Compositor.cpp | |
| parent | f69e72eca1a31e4780d06018fc7e09767a50969d (diff) | |
core: guard workspace and monitor in moveWorkspaceToMonitor
ref #7822
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index aa6faa16..c80f05e6 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2076,7 +2076,8 @@ PHLMONITOR CCompositor::getMonitorFromString(const std::string& name) { void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMonitor, bool noWarpCursor) { - // We trust the monitor to be correct. + if (!pWorkspace || !pMonitor) + return; if (pWorkspace->m_pMonitor == pMonitor) return; |
