-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL3 backend: phantom window frame on viewport creation when NoDecoration is disabled #8328
Comments
I didn't have a change to test, but I suspect this happens because the SDL3 backend is missing imgui/backends/imgui_impl_sdl3.cpp Lines 958 to 965 in 109dd2b
Which is used in the SDL2 backend, probably for this reason: imgui/backends/imgui_impl_sdl2.cpp Line 992 in 109dd2b
|
This is really bizarre indeed, it has been missing from a526ff8...I wonder if at the time it was missing of SDL3's wip CreateWindow didn't show the window. Rémy could you confirm if that's your issue? (as I cannot repro here). Thanks David! |
This issue is not visually consistent, I can see it most of the time I drag a viewport outside the main window, but not always. I tried, and it still happens with SDL_WINDOW_HIDDEN, albeit less often. |
I'll add the SDL_WINDOW_HIDDEN flag either way for now. |
Version/Branch of Dear ImGui:
Version 1.91.7 Branch: docking
Back-ends:
imgui_impl_sdl3.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Windows 11 + MSVC 22
Full config/build information:
Details:
When the NoDecoration flag is disabled and a window is dragged outside the main viewport, the frame of the newly created window appears for one frame in the top-left corner of the screen.
Screenshots/Video:
Screen.Recording.2024-09-17.195208-1.mp4
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: