From a3802c84fd77732f603a6d303fd8d9af7dbb11d7 Mon Sep 17 00:00:00 2001 From: David Maas Date: Wed, 22 Jan 2025 10:01:40 +0100 Subject: [PATCH] Backends: SDL3: new viewport windows are created with the SDL_WINDOW_HIDDEN flag before calling SDL_ShowWindow(). (#8328 Unsure why it was missing from a526ff8c3 --- backends/imgui_impl_sdl3.cpp | 1 + docs/CHANGELOG.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/backends/imgui_impl_sdl3.cpp b/backends/imgui_impl_sdl3.cpp index 9bd3974e7..3e4d5bccd 100644 --- a/backends/imgui_impl_sdl3.cpp +++ b/backends/imgui_impl_sdl3.cpp @@ -955,6 +955,7 @@ static void ImGui_ImplSDL3_CreateWindow(ImGuiViewport* viewport) } SDL_WindowFlags sdl_flags = 0; + sdl_flags |= SDL_WINDOW_HIDDEN; sdl_flags |= use_opengl ? SDL_WINDOW_OPENGL : (bd->UseVulkan ? SDL_WINDOW_VULKAN : 0); sdl_flags |= SDL_GetWindowFlags(bd->Window) & SDL_WINDOW_HIGH_PIXEL_DENSITY; sdl_flags |= (viewport->Flags & ImGuiViewportFlags_NoDecoration) ? SDL_WINDOW_BORDERLESS : 0; diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index ecb5c4467..55ae26a58 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -72,6 +72,9 @@ Other changes: Docking+Viewports Branch: +- Backends: SDL3: new viewport windows are created with the SDL_WINDOW_HIDDEN flag + before calling SDL_ShowWindow(). (#8328) [@PathogenDavid] + ----------------------------------------------------------------------- VERSION 1.91.7 (Released 2025-01-14)