|
@@ -520,7 +520,6 @@ static bool ImGui_ImplSDL2_Init(SDL_Window* window, SDL_Renderer* renderer, void
|
|
|
#else
|
|
|
bd->MouseCanReportHoveredViewport = false;
|
|
|
#endif
|
|
|
- bd->WantUpdateMonitors = true;
|
|
|
|
|
|
ImGuiPlatformIO& platform_io = ImGui::GetPlatformIO();
|
|
|
platform_io.Platform_SetClipboardTextFn = ImGui_ImplSDL2_SetClipboardText;
|
|
@@ -531,6 +530,9 @@ static bool ImGui_ImplSDL2_Init(SDL_Window* window, SDL_Renderer* renderer, void
|
|
|
platform_io.Platform_OpenInShellFn = [](ImGuiContext*, const char* url) { ImGui_ImplSDL2_EmscriptenOpenURL(url); return true; };
|
|
|
#endif
|
|
|
|
|
|
+ // Update monitor a first time during init
|
|
|
+ ImGui_ImplSDL2_UpdateMonitors();
|
|
|
+
|
|
|
// Gamepad handling
|
|
|
bd->GamepadMode = ImGui_ImplSDL2_GamepadMode_AutoFirst;
|
|
|
bd->WantUpdateGamepadsList = true;
|