mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 13:37:00 +00:00
Initial creation of a ImGuiWindowFlags_NoBringToFrontOnFocus window push it at the front of global window list
This commit is contained in:
parent
40ddf8e287
commit
f3b41b35c2
@ -3514,6 +3514,9 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFl
|
|||||||
window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0);
|
window->AutoFitOnlyGrows = (window->AutoFitFramesX > 0) || (window->AutoFitFramesY > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flags & ImGuiWindowFlags_NoBringToFrontOnFocus)
|
||||||
|
g.Windows.insert(g.Windows.begin(), window); // Quite slow but rare and only once
|
||||||
|
else
|
||||||
g.Windows.push_back(window);
|
g.Windows.push_back(window);
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user