[c-hots] fix incorrect unlock timing

This commit is contained in:
Geoffrey McRae
2020-01-29 22:12:59 +11:00
parent b0f9f15a60
commit 57f1f2d1fe
2 changed files with 4 additions and 5 deletions

View File

@@ -118,9 +118,8 @@ static void on_mouseMove(int x, int y)
.x = x,
.y = y
};
this->postPointerBufferFn(pointer);
LG_UNLOCK(this->pointerLock);
this->postPointerBufferFn(pointer);
}
static const char * dxgi_getName()
@@ -820,8 +819,8 @@ static CaptureResult dxgi_capture()
{
LG_LOCK(this->pointerLock);
pointer.visible = this->lastPointerVisible;
this->postPointerBufferFn(pointer);
LG_UNLOCK(this->pointerLock);
this->postPointerBufferFn(pointer);
}
return CAPTURE_RESULT_OK;