From 2692ccc7b375bd7d99699e76e3e14a434c6b97b1 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 9 Oct 2018 18:33:18 +1100 Subject: [PATCH] [client] use mouse visibility info properly --- client/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index 1b78e2eb..8dccc5e7 100644 --- a/client/main.c +++ b/client/main.c @@ -286,13 +286,17 @@ int cursorThread(void * unused) // now we have taken the mouse data, we can flag to the host we are ready state.shm->cursor.flags = 0; + bool showCursor = header.flags & KVMFR_CURSOR_FLAG_VISIBLE; if (header.flags & KVMFR_CURSOR_FLAG_POS) { state.cursor.x = header.x; state.cursor.y = header.y; - state.cursorVisible = header.flags & KVMFR_CURSOR_FLAG_VISIBLE; state.haveCursorPos = true; + } + if (showCursor != state.cursorVisible || header.flags & KVMFR_CURSOR_FLAG_POS) + { + state.cursorVisible = showCursor; state.lgr->on_mouse_event ( state.lgrData,