mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 04:57:54 +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:
parent
cd10e02862
commit
82e10c1b7e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue