From 129c97f610d06cf0fd4583b2a8a96ac917500bb1 Mon Sep 17 00:00:00 2001 From: Aleksey Melekh Date: Fri, 5 Sep 2025 17:58:37 +0200 Subject: [PATCH] xbox: fix build --- src/video/windows/SDL_windowswindow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index 5902f8f9c3..259ba3c239 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -737,8 +737,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);