mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
fix crash in nested non-mouse warps
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user