-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Modal is closed when doing an Alt-Tab to another window not in its hierarchy #6357
Comments
Seems like a regression caused by #6299 (comment) |
…usRequestFlags_RestoreFocusedChild flag. (#6357) # Conflicts: # imgui.cpp
I have pushed a fix for this, it comes a series of commits, mainly 30eceaf, 01ca196, 4d42450, ending with There was a much needed refactor of whose responsibility it is to check for the presence of blocking modal before a focus change and this allowed me to start doing this refactor. I think there's more to do on that topic (other than your specific issue) but I will need to wait until we have a more serious battery of regression tests around this. Specifically, my general plan is:
|
Version/Branch of Dear ImGui:
Version: 1.89.5
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_win32.cpp + imgui_impl_dx12.cpp
Compiler: VS 2022
Operating System: Windows 10
My Issue/Question:
When having a popup modal opened in a separate window, and it has not having the focus, doing a alt-tab to another window not in its hierarchy is getting it closed.
(Open the demo, open a "Delete..." modal, make all windows popped out, click on the main window, Alt-Tab to "Dear ImGui Window", and the modal get closed).
The text was updated successfully, but these errors were encountered: