From 29ea8ecf6be0d1b1e25ed3e977f11951ec1dd688 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 21 Jan 2021 14:17:31 +1100 Subject: [PATCH] [client] app: if spice is not in use, hide the local cursor (fixes #415) --- client/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/main.c b/client/src/main.c index e71c31a9..f1a67d19 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1993,6 +1993,10 @@ static int lg_run(void) // ensure renderer viewport is aware of the current window size updatePositionInfo(); + // if spice is not in use, hide the local cursor + if (!app_inputEnabled() && params.hideMouse) + SDL_ShowCursor(SDL_DISABLE); + if (params.fpsMin <= 0) { // default 30 fps