mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-31 20:03:48 -07:00
animationmgr: guard monitor ptr in animationSlide
This commit is contained in:
@@ -343,6 +343,9 @@ void CAnimationManager::animationSlide(CWindow* pWindow, std::string force, bool
|
|||||||
|
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(pWindow->m_iMonitorID);
|
||||||
|
|
||||||
|
if (!PMONITOR)
|
||||||
|
return; // unsafe state most likely
|
||||||
|
|
||||||
Vector2D posOffset;
|
Vector2D posOffset;
|
||||||
|
|
||||||
if (force != "") {
|
if (force != "") {
|
||||||
|
Reference in New Issue
Block a user