Fixed Bug 3215 - Win32: 'fullscreen' app doesn't always extend to top of screen

This commit is contained in:
David Ludwig
2015-12-30 12:44:13 -05:00
parent 9d789ebe0d
commit 854cf7ac40
3 changed files with 24 additions and 0 deletions

View File

@@ -419,11 +419,15 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
SDL_ToggleModState(KMOD_CAPS, (GetKeyState(VK_CAPITAL) & 0x0001) != 0);
SDL_ToggleModState(KMOD_NUM, (GetKeyState(VK_NUMLOCK) & 0x0001) != 0);
} else {
data->in_window_deactivation = SDL_TRUE;
if (SDL_GetKeyboardFocus() == data->window) {
SDL_SetKeyboardFocus(NULL);
}
ClipCursor(NULL);
data->in_window_deactivation = SDL_FALSE;
}
}
returnCode = 0;