diff options
| author | Barrett Ruth <62671086+barrettruth@users.noreply.github.com> | 2026-03-26 16:46:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 20:46:20 +0000 |
| commit | 2de1d3ca964e66efaf5bc807e3c2dc4e93801b41 (patch) | |
| tree | 79d09df8a0192fa74f6c3818edfdd03f82b5ccca /src/layout | |
| parent | 1b661d06da4504b5aaf896bf88fa858e14f03909 (diff) | |
layout: guard null workspace in CWindowTarget::updatePos() (#13861)
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/target/WindowTarget.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/layout/target/WindowTarget.cpp b/src/layout/target/WindowTarget.cpp index 3bc36c2a..cc6bfab4 100644 --- a/src/layout/target/WindowTarget.cpp +++ b/src/layout/target/WindowTarget.cpp @@ -66,6 +66,9 @@ void CWindowTarget::updatePos() { if (fullscreenMode() == FSMODE_MAXIMIZED) ITarget::setPositionGlobal({.logicalBox = m_space->workArea(floating())}); + if (!m_space->workspace()) + return; + const auto PMONITOR = m_space->workspace()->m_monitor; const auto PWORKSPACE = m_space->workspace(); const auto MONITOR_WORKAREA = m_space->workArea(); |
