Commit 7afb76824ea727e83e01c16f7872b1e82f41d74e

Sam Lantinga 2013-12-05T09:29:04

Added code missed in the resolve

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index bbab2da..9e82dc9 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -418,6 +418,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                 if (SDL_GetKeyboardFocus() == data->window) {
                     SDL_SetKeyboardFocus(NULL);
                 }
+
+                ClipCursor(NULL);
             }
         }
         returnCode = 0;