mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 09:25:59 +01:00
animationmgr: guard monitor ptr in animationSlide
This commit is contained in:
parent
37e2311a3e
commit
8b9cc9a8db
1 changed files with 5 additions and 2 deletions
|
@ -343,6 +343,9 @@ void CAnimationManager::animationSlide(CWindow* pWindow, std::string force, bool
|
|||
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
||||
|
||||
if (!PMONITOR)
|
||||
return; // unsafe state most likely
|
||||
|
||||
Vector2D posOffset;
|
||||
|
||||
if (force != "") {
|
||||
|
|
Loading…
Reference in a new issue