From 9af14ac1db93f713fec7f37148d71f594c0752ca Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Mon, 21 May 2018 14:37:30 -0300 Subject: [PATCH] Fix #15678 Fix cursor not displaying arrow when transiting from mode captured to visible. --- platform/windows/os_windows.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index d6cdea7b885..652311cab98 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -777,7 +777,9 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) SetCursor(NULL); } else { if (hCursor != NULL) { - SetCursor(hCursor); + CursorShape c = cursor_shape; + cursor_shape = CURSOR_MAX; + set_cursor_shape(c); hCursor = NULL; } }