mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-31 04:31:57 +00:00 
			
		
		
		
	[c-hots] fix incorrect unlock timing
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Geoffrey McRae
					Geoffrey McRae