-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Multiple stacked dock windows seems to cause incorrect window focus on start up #2960
Comments
Thank you Jack, this is a perfect report and I can repro the issue. Will look into it when possible. |
Simplified example, since the WindowClass stuff doesn't relate to the bug. Unrelated comments about your repro:
)
|
Hello Jack, I don't think there will be side-effects to the change but Docking system being so complex, if you suspect anything let me know! Thanks!) |
Thanks for pointing out the ID issues, i was using my own string class but it would work the same. |
There is a bug when you have a certain docking setup, when running the application for the first time imgui is in a semi-stuck position where you cant open menus until you fiddle with the tabs a bit
Code to repro the bug
Call code after new frame
Ini file with docking setup for windows
imgui.txt
You will need to save this as a .ini, i had to change it to .txt to upload it
Should look like this:
Notice that only 1 window will ever focus properly.
Notice that you cannot open any of the menu bar menus
When you fiddle with the tabs on the left most window, things begin working again but this bug will repro on next start up.
Seems like in this state ImGui::FocusWindow is being called every frame.
Hope this is enough information
The text was updated successfully, but these errors were encountered: