mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-23 05:59:40 +00:00
Fix modern menu not interacting properly with some mouse events (#844)
This commit is contained in:
parent
01b127b7f3
commit
ebb9e3fc8e
@ -174,7 +174,7 @@ void BenMenu::DrawElement() {
|
||||
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), windowCond, { 0.5f, 0.5f });
|
||||
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f);
|
||||
}
|
||||
if (!ImGui::Begin("Main Menu", NULL, windowFlags | ImGuiWindowFlags_NoBringToFrontOnFocus)) {
|
||||
if (!ImGui::Begin("Main Menu", NULL, windowFlags)) {
|
||||
if (!popout) {
|
||||
ImGui::PopStyleVar();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user