diff options
Diffstat (limited to 'src/layout/target/WindowTarget.cpp')
| -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(); |
