浏览代码

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
David Maas 6 月之前
父节点
当前提交
a3802c84fd
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      backends/imgui_impl_sdl3.cpp
  2. 3 0
      docs/CHANGELOG.txt

+ 1 - 0
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;

+ 3 - 0
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)