mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[c-hots] fix incorrect unlock timing
This commit is contained in:
parent
b0f9f15a60
commit
57f1f2d1fe
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user