diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-03-30 17:18:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-30 23:18:04 +0200 |
| commit | 8aaffda969bcff6708b47fab776ea45979ea7d9f (patch) | |
| tree | 77db4579de89063304f3a3582dff969c0ad91707 /src/Compositor.cpp | |
| parent | 10a335631e71f5bdbd8f311a3aaeeef89debae11 (diff) | |
core: fix null ref when resuming system (#9794)
* core: fix null ref when resuming system
* e
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index cb94116d..8a3a8cbf 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2154,11 +2154,13 @@ void CCompositor::moveWorkspaceToMonitor(PHLWORKSPACE pWorkspace, PHLMONITOR pMo Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with new {}", nextWorkspaceOnMonitorID); - g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID); + if (POLDMON) + g_pCompositor->createNewWorkspace(nextWorkspaceOnMonitorID, POLDMON->ID); } Debug::log(LOG, "moveWorkspaceToMonitor: Plugging gap with existing {}", nextWorkspaceOnMonitorID); - POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true); + if (POLDMON) + POLDMON->changeWorkspace(nextWorkspaceOnMonitorID, false, true, true); } // move the workspace |
