Skip to content

Commit

Permalink
fix: forcerelease when locked && captured
Browse files Browse the repository at this point in the history
  • Loading branch information
littleblack111 committed Jan 5, 2025
1 parent 50fb494 commit ae6d53c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/managers/PointerManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,11 @@ void CPointerManager::move(const Vector2D& deltaLogical) {
auto newPos = oldPos + Vector2D{std::isnan(deltaLogical.x) ? 0.0 : deltaLogical.x, std::isnan(deltaLogical.y) ? 0.0 : deltaLogical.y};


if (!g_pInputManager->isLocked())
if (!g_pInputManager->isLocked()) {
PROTO::inputCapture->sendMotion(newPos, deltaLogical);
if (PROTO::inputCapture->isCaptured())
PROTO::inputCapture->forceRelease();
}

if (PROTO::inputCapture->isCaptured())
return;
Expand Down

0 comments on commit ae6d53c

Please sign in to comment.