Skip to content

Commit

Permalink
Backends: SDL3: new viewport windows are created with the SDL_WINDOW_…
Browse files Browse the repository at this point in the history
…HIDDEN flag before calling SDL_ShowWindow(). (#8328

Unsure why it was missing from a526ff8
  • Loading branch information
PathogenDavid authored and ocornut committed Jan 22, 2025
1 parent 6e94f6c commit a3802c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions backends/imgui_impl_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a3802c8

Please sign in to comment.