Merge pull request #19082 from guilhermefelipecgs/fix_cursor

Fix cursor not displaying arrow when transiting from mode captured to visible.
This commit is contained in:
Max Hilbrunner 2018-05-21 18:26:42 +02:00 committed by GitHub
commit 3ac7f08b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -777,7 +777,9 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetCursor(NULL); SetCursor(NULL);
} else { } else {
if (hCursor != NULL) { if (hCursor != NULL) {
SetCursor(hCursor); CursorShape c = cursor_shape;
cursor_shape = CURSOR_MAX;
set_cursor_shape(c);
hCursor = NULL; hCursor = NULL;
} }
} }