diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-05-21 18:26:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-21 18:26:42 +0200 |
commit | 3ac7f08b5585943b2f6e9e4868e366eb44cec368 (patch) | |
tree | 92556a753bb60de765e852a06466e9e83421b1e9 | |
parent | bd39e0d864893c08471a1dcb6abae3c5df698139 (diff) | |
parent | 9af14ac1db93f713fec7f37148d71f594c0752ca (diff) |
Merge pull request #19082 from guilhermefelipecgs/fix_cursor
Fix cursor not displaying arrow when transiting from mode captured to visible.
-rw-r--r-- | platform/windows/os_windows.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index d6cdea7b88..652311cab9 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; } } |