[client] stop the cursorThread if video feed is disabled

The cursorThread prevents the host from going to sleep when the
video feed is disabled as it's subscribed to the cursor queue. Stopping
the cursorThread will unsubscribe from the queue and allow the host
application to disable capture.
This commit is contained in:
Geoffrey McRae
2021-10-06 20:04:06 +11:00
parent 24fa580519
commit e914e56c48
5 changed files with 39 additions and 17 deletions

View File

@@ -31,6 +31,8 @@ bool core_warpPointer(int x, int y, bool exiting);
void core_updatePositionInfo(void);
void core_alignToGuest(void);
bool core_isValidPointerPos(int x, int y);
bool core_startCursorThread(void);
void core_stopCursorThread(void);
bool core_startFrameThread(void);
void core_stopFrameThread(void);
void core_handleGuestMouseUpdate(void);