From 5e915dd1ff7ad761c24571ae295a2e3f70376089 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Jan 2020 13:11:12 +1100 Subject: [PATCH] [client] don't send mouse click events when out of view --- VERSION | 2 +- client/src/main.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index f2fb620c..94bfc4ae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B1-78-g05dc713dac+1 \ No newline at end of file +B1-79-g13f55011c0+1 \ No newline at end of file diff --git a/client/src/main.c b/client/src/main.c index 87f71452..414e642a 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -956,7 +956,7 @@ int eventFilter(void * userdata, SDL_Event * event) } case SDL_MOUSEWHEEL: - if (state.ignoreInput || !params.useSpiceInput) + if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView) break; if ( @@ -970,7 +970,7 @@ int eventFilter(void * userdata, SDL_Event * event) break; case SDL_MOUSEBUTTONDOWN: - if (state.ignoreInput || !params.useSpiceInput) + if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView) break; // The SPICE protocol doesn't support more than a standard PS/2 3 button mouse @@ -987,7 +987,7 @@ int eventFilter(void * userdata, SDL_Event * event) break; case SDL_MOUSEBUTTONUP: - if (state.ignoreInput || !params.useSpiceInput) + if (state.ignoreInput || !params.useSpiceInput || !state.cursorInView) break; // The SPICE protocol doesn't support more than a standard PS/2 3 button mouse