Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fullscreen doesn't automatically grab the cursor.
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/video/windows/SDL_windowswindow.c
|
@@ -582,8 +582,8 @@ WIN_SetWindowGrab(_THIS, SDL_Window * window) |
|
|
{ |
|
|
HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd; |
|
|
|
|
|
if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) |
|
|
&& (window->flags & SDL_WINDOW_INPUT_FOCUS)) { |
|
|
if ((window->flags & SDL_WINDOW_INPUT_GRABBED) && |
|
|
(window->flags & SDL_WINDOW_INPUT_FOCUS)) { |
|
|
RECT rect; |
|
|
GetClientRect(hwnd, &rect); |
|
|
ClientToScreen(hwnd, (LPPOINT) & rect); |
|
|