mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02:00
When testing for the presence of the ImGuiWindowFlags_NoBringToFrontOnFocus flag we test both the focused/clicked window (which could be a child window) and the root window.
This commit is contained in:
@ -6050,7 +6050,7 @@ void ImGui::FocusWindow(ImGuiWindow* window)
|
||||
|
||||
// Bring to front
|
||||
BringWindowToFocusFront(focus_front_window);
|
||||
if ((display_front_window->Flags & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0)
|
||||
if (((window->Flags | display_front_window->Flags) & ImGuiWindowFlags_NoBringToFrontOnFocus) == 0)
|
||||
BringWindowToDisplayFront(display_front_window);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user