fix crash in nested non-mouse warps

This commit is contained in:
vaxerski 2023-01-28 17:54:14 +00:00
parent 86f4772bd6
commit 1c1e688564

View file

@ -2031,6 +2031,9 @@ void CCompositor::warpCursorTo(const Vector2D& pos, bool force) {
if (*PNOWARPS && !force)
return;
if (!m_sSeat.mouse)
return;
wlr_cursor_warp(m_sWLRCursor, m_sSeat.mouse->mouse, pos.x, pos.y);
const auto PMONITORNEW = getMonitorFromVector(pos);