[host] send the correct cursor shape on client connection

This commit is contained in:
Geoffrey McRae 2020-08-11 17:16:54 +10:00
parent bf5481446b
commit 045932ce77

View file

@ -285,10 +285,9 @@ bool captureGetPointerBuffer(void ** data, uint32_t * size)
static void sendPointer(bool newClient) static void sendPointer(bool newClient)
{ {
PLGMPMemory mem; PLGMPMemory mem;
if (app.pointerInfo.shapeUpdate || newClient) if (app.pointerInfo.shapeUpdate || newClient)
{ {
if (app.pointerInfo.shapeUpdate) if (!newClient)
{ {
// swap the latest shape buffer out of rotation // swap the latest shape buffer out of rotation
PLGMPMemory tmp = app.pointerShape; PLGMPMemory tmp = app.pointerShape;