|
@@ -19,6 +19,7 @@
|
|
|
|
|
|
// CHANGELOG
|
|
|
// (minor and older changes stripped away, please see git history for details)
|
|
|
+// 2023-05-04: Fixed build on Emscripten/iOS/Android. (#6391)
|
|
|
// 2023-04-06: Inputs: Avoid calling SDL_StartTextInput()/SDL_StopTextInput() as they don't only pertain to IME. It's unclear exactly what their relation is to IME. (#6306)
|
|
|
// 2023-04-04: Inputs: Added support for io.AddMouseSourceEvent() to discriminate ImGuiMouseSource_Mouse/ImGuiMouseSource_TouchScreen. (#2702)
|
|
|
// 2023-02-23: Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. (#6189, #6114, #3644)
|
|
@@ -441,6 +442,7 @@ static void ImGui_ImplSDL3_UpdateMouseData()
|
|
|
SDL_Window* focused_window = SDL_GetKeyboardFocus();
|
|
|
const bool is_app_focused = (bd->Window == focused_window);
|
|
|
#else
|
|
|
+ SDL_Window* focused_window = bd->Window;
|
|
|
const bool is_app_focused = (SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_INPUT_FOCUS) != 0; // SDL 2.0.3 and non-windowed systems: single-viewport only
|
|
|
#endif
|
|
|
if (is_app_focused)
|