You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using BringWindowToDisplayFront, other windows will flicker when they get the focus.
Although you can use ImGuiWindowFlags_NoBringToFrontOnFocus for other windows to solve this problem, it is too cumbersome to do so, so I don't know if this is a problem.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
if (ImGui::Begin("CAPTION1"))
{
ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
}
ImGui::End();
if (ImGui::Begin("CAPTION2"))
{
}
ImGui::End();
// I mainly hope that MainMenu will not be blocked by other windows:// Although you can use ImGuiWindowFlags_NoBringToFrontOnFocus for other windows to solve this problem, // it is too cumbersome to do so, so I don't know if this is a problem.if (ImGui::BeginMainMenuBar())
{
ImGui::BringWindowToDisplayFront(ImGui::GetCurrentWindow());
if (ImGui::BeginMenu("File"))
{
ImGui::EndMenu();
}
if (ImGui::BeginMenu("Edit"))
{
if (ImGui::MenuItem("Undo", "CTRL+Z")) {}
if (ImGui::MenuItem("Paste", "CTRL+V")) {}
ImGui::EndMenu();
}
ImGui::EndMainMenuBar();
}
if (ImGui::Begin("CAPTION2"))
{
}
ImGui::End();
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
1.91.6
Back-ends:
imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler, OS:
win11+vs2022
Full config/build information:
No response
Details:
After using BringWindowToDisplayFront, other windows will flicker when they get the focus.
Although you can use ImGuiWindowFlags_NoBringToFrontOnFocus for other windows to solve this problem, it is too cumbersome to do so, so I don't know if this is a problem.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: