summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-05-21 14:37:30 -0300
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-05-21 14:37:30 -0300
commit9af14ac1db93f713fec7f37148d71f594c0752ca (patch)
tree79acfb00e91cb8a8d504052d4b204d9c75cc0e97
parent9a5950ace52c4ebb575d452d6451259d6f2323e3 (diff)
Fix #15678
Fix cursor not displaying arrow when transiting from mode captured to visible.
-rw-r--r--platform/windows/os_windows.cpp4
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;
}
}