[host] d12: fix failure to send mouse shape updates

This commit is contained in:
Geoffrey McRae 2024-01-31 05:28:03 +11:00
parent cae4b2f4f9
commit 4523b9ba00

View File

@ -343,7 +343,6 @@ retry:
} }
bool postPointer = false; bool postPointer = false;
bool postShape = false;
CapturePointer pointer = {0}; CapturePointer pointer = {0};
// if the pointer has moved // if the pointer has moved
@ -354,7 +353,7 @@ retry:
// if the pointer shape has changed // if the pointer shape has changed
if (frameInfo.PointerShapeBufferSize > 0) if (frameInfo.PointerShapeBufferSize > 0)
d12_dd_handlePointerShape( d12_dd_handlePointerShape(
&pointer, frameInfo.PointerShapeBufferSize, &postShape); &pointer, frameInfo.PointerShapeBufferSize, &postPointer);
if (postPointer) if (postPointer)
d12_updatePointer(&pointer, this->shapeBuffer, this->shapeBufferSize); d12_updatePointer(&pointer, this->shapeBuffer, this->shapeBufferSize);