From 7d2b39058cbd42e734c054ea9d90376c4a7b6025 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 20 Aug 2020 16:05:55 +1000 Subject: [PATCH] [client] ensure the cursor is updated when the window looses/gains focus --- VERSION | 2 +- client/src/main.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3c832765..94c9d4d8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B2-rc4-8-gf9b6dcc986+1 \ No newline at end of file +B2-rc4-9-g6927dbecd2+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index 02bc1db4..6db6f531 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -285,6 +285,8 @@ static int cursorThread(void * unused) state.cursor.x, state.cursor.y ); + + lgSignalEvent(e_frame); } usleep(params.cursorPollInterval); @@ -354,7 +356,7 @@ static int cursorThread(void * unused) state.lgr->on_mouse_event ( state.lgrData, - state.cursorVisible && state.drawCursor, + state.cursorVisible && state.drawCursor && state.cursorInView, state.cursor.x, state.cursor.y );