layout: guard null workspace in CWindowTarget::updatePos() (#13861)

This commit is contained in:
Barrett Ruth 2026-03-26 16:46:20 -04:00 committed by Vaxry
parent 91d87ec875
commit 7dbd3e9d05
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -65,6 +65,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();