mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] app: fix inverted cursor shape logic
We should only advance the pointerIndex if the buffer was not swapped out for storage. This is to ensure that we do not overwrite cursor memory that the client(s) may still be using.
This commit is contained in:
@@ -397,8 +397,8 @@ static void sendPointer(bool newClient)
|
||||
app.pointerShape = mem;
|
||||
}
|
||||
|
||||
// only advance the index if the shape was changed
|
||||
if ((flags & CURSOR_FLAG_SHAPE) != 0)
|
||||
// only advance if the pointer shape was not swapped out of the list
|
||||
if ((flags & CURSOR_FLAG_SHAPE) == 0)
|
||||
if (++app.pointerIndex == POINTER_SHAPE_BUFFERS)
|
||||
app.pointerIndex = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user