mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 22:13:40 +00:00
[client] use mouse visibility info properly
This commit is contained in:
parent
f36fd5ac1a
commit
2692ccc7b3
@ -286,13 +286,17 @@ int cursorThread(void * unused)
|
|||||||
// now we have taken the mouse data, we can flag to the host we are ready
|
// now we have taken the mouse data, we can flag to the host we are ready
|
||||||
state.shm->cursor.flags = 0;
|
state.shm->cursor.flags = 0;
|
||||||
|
|
||||||
|
bool showCursor = header.flags & KVMFR_CURSOR_FLAG_VISIBLE;
|
||||||
if (header.flags & KVMFR_CURSOR_FLAG_POS)
|
if (header.flags & KVMFR_CURSOR_FLAG_POS)
|
||||||
{
|
{
|
||||||
state.cursor.x = header.x;
|
state.cursor.x = header.x;
|
||||||
state.cursor.y = header.y;
|
state.cursor.y = header.y;
|
||||||
state.cursorVisible = header.flags & KVMFR_CURSOR_FLAG_VISIBLE;
|
|
||||||
state.haveCursorPos = true;
|
state.haveCursorPos = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (showCursor != state.cursorVisible || header.flags & KVMFR_CURSOR_FLAG_POS)
|
||||||
|
{
|
||||||
|
state.cursorVisible = showCursor;
|
||||||
state.lgr->on_mouse_event
|
state.lgr->on_mouse_event
|
||||||
(
|
(
|
||||||
state.lgrData,
|
state.lgrData,
|
||||||
|
Loading…
Reference in New Issue
Block a user