virtual-pointer: fixup virtual pointer warp events

fixes #6976
This commit is contained in:
Vaxry
2024-07-22 17:24:24 +02:00
parent 87db950189
commit 77b134e23b
2 changed files with 7 additions and 2 deletions

View File

@@ -620,7 +620,7 @@ void CPointerManager::move(const Vector2D& deltaLogical) {
void CPointerManager::warpAbsolute(Vector2D abs, SP<IHID> dev) {
SP<CMonitor> currentMonitor = g_pCompositor->m_pLastMonitor.lock();
if (!currentMonitor)
if (!currentMonitor || !dev)
return;
if (!std::isnan(abs.x))