desktopAnimation: fix crash in startAnimation on ws with no parent (#15224)

This commit is contained in:
Vaxry
2026-06-24 15:25:28 +01:00
committed by GitHub
parent 049595e196
commit 98ebf05fe9
@@ -254,7 +254,10 @@ void CDesktopAnimationManager::startAnimation(PHLWORKSPACE ws, eAnimationType ty
const auto PMONITOR = ws->m_monitor.lock();
const auto ANIMSTYLE = style.value_or(ws->m_alpha->getStyle());
float movePerc = 100.f;
if (!PMONITOR)
return;
float movePerc = 100.f;
// inverted for some reason. TODO: fix the cause
bool vert = ANIMSTYLE.starts_with("slidevert") || ANIMSTYLE.starts_with("slidefadevert");