[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

@@ -93,8 +93,8 @@ static void on_mouseMove(int x, int y)
.y = this->mouseY - this->mouseHotY
};
this->postPointerBufferFn(pointer);
LG_UNLOCK(this->cursorLock);
this->postPointerBufferFn(pointer);
}
static const char * nvfbc_getName()
@@ -364,8 +364,8 @@ static int pointerThread(void * unused)
pointer.x = this->mouseX - this->mouseHotX;
pointer.y = this->mouseY - this->mouseHotY;
this->postPointerBufferFn(pointer);
LG_UNLOCK(this->cursorLock);
this->postPointerBufferFn(pointer);
}
return 0;