aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-01-28 17:54:14 +0000
committervaxerski <[email protected]>2023-01-28 17:54:14 +0000
commit1c1e688564500ac0a4938d8dcc77382b370dacd6 (patch)
tree0f3cd31d05b2efa3d00f3a85a798c652c6302f0f /src/Compositor.cpp
parent86f4772bd6711cbd62f110644add490446a12a7d (diff)
downloadHyprland-1c1e688564500ac0a4938d8dcc77382b370dacd6.tar.gz
Hyprland-1c1e688564500ac0a4938d8dcc77382b370dacd6.zip
fix crash in nested non-mouse warps
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 41ef2cdc..c2c80aee 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -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);