mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-24 10:04:19 -05:00
desktopAnimation: fix crash in startAnimation on ws with no parent (#15224)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user