Open Fewnity opened 11 months ago
Hello,
This is unfortunately not a standalone, complete and verifiable example :)
If you claim there is an issue please try to state and prove it with code, because we are using SetWindowFocus()
in other parts of the code and it works in our context. It is also a little ambiguous if you are talking about imgui windows or platform/os windows (see Glossary) which completely changes the nature of the question from our point of view.
By any chance to you have multi-viewports enabled? Because imgui focus only apply at imgui levels and isn't reflected on platform windows (see #2605, which is still open for that question but proposed solutions afaik have side effects).
Version: 1.90 Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_SDL2.cpp + imgui_impl_opengl3.cpp Operating System: Windows 11
My Issue/Question:
If I understand,
ImGui::SetWindowFocus()
orSetNextWindowFocus()
should bring the window in front of all other windows. But it's not working. The windows is focused (the title bar is changing color) but the windows is still behind other windows... I'm not using the flagImGuiWindowFlags_NoBringToFrontOnFocus
so I don't know why it's not working. Can you help me? Thanks :)Standalone, minimal, complete and verifiable example: