From 8692e9af80dba4a79a2ffe81fa35bbab60e4b874 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 21 Aug 2020 15:40:22 +1000 Subject: [PATCH] [client] don't hide the cursor when SPICE is disabled Fixes #304 --- VERSION | 2 +- client/src/main.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 94c9d4d8..71b26460 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B2-rc4-9-g6927dbecd2+1 \ No newline at end of file +B2-rc4-10-g7d2b39058c+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index 6db6f531..e7e73a24 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -281,7 +281,7 @@ static int cursorThread(void * unused) state.lgr->on_mouse_event ( state.lgrData, - state.cursorVisible && state.drawCursor && state.cursorInView, + state.cursorVisible && state.drawCursor, state.cursor.x, state.cursor.y ); @@ -356,7 +356,7 @@ static int cursorThread(void * unused) state.lgr->on_mouse_event ( state.lgrData, - state.cursorVisible && state.drawCursor && state.cursorInView, + state.cursorVisible && state.drawCursor, state.cursor.x, state.cursor.y ); @@ -730,6 +730,9 @@ static void handleMouseMoveEvent(int ex, int ey) state.cursorInView = false; state.updateCursor = true; state.warpState = WARP_STATE_OFF; + + if (params.useSpiceInput) + state.drawCursor = false; return; } } @@ -738,6 +741,7 @@ static void handleMouseMoveEvent(int ex, int ey) { state.cursorInView = true; state.updateCursor = true; + state.drawCursor = true; if (state.warpState == WARP_STATE_ARMED) state.warpState = WARP_STATE_ON; }