xbox: fix build

(cherry picked from commit 129c97f610)
This commit is contained in:
Aleksey Melekh authored and Sam Lantinga committed 2025-09-05 09:20:34 -07:00
1 parent a0b8275e9c
commit e755f50072
1 file changed
+2
+2
View File
@@ -747,8 +747,10 @@ bool WIN_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
return false;
}
#if !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
// Ensure that the IME isn't active on the new window until explicitly requested.
WIN_StopTextInput(_this, window);
#endif
// Inform Windows of the frame change so we can respond to WM_NCCALCSIZE
SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER | SWP_NOACTIVATE);