From f18f07deaf743f6ff0471370daf4b3f6269c9e29 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 16 Jan 2021 19:51:26 +1100 Subject: [PATCH] [client] mouse: window enter should not enable drawing the cursor The pointer may not yet be in the view area so we should defer drawing it until the mouse move handler determines that it's inside the view area and turn it on itself. --- client/src/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index d62bad90..2ccc4f77 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1174,7 +1174,6 @@ void app_handleWindowLeave(void) if (!params.alwaysShowCursor) g_cursor.draw = false; - g_cursor.redraw = true; } @@ -1183,9 +1182,6 @@ void app_handleWindowEnter(void) g_cursor.inWindow = true; if (!app_inputEnabled()) return; - - g_cursor.draw = true; - g_cursor.redraw = true; } static void setGrab(bool enable)