summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchez <Archez@users.noreply.github.com>2024-11-12 10:39:29 -0500
committerGitHub <noreply@github.com>2024-11-12 10:39:29 -0500
commitebb9e3fc8ee9f8eb57843ec2a5f49cdc099201b7 (patch)
tree9e6dc0b47cc23bdcc797afeb0d47bc7ac96358d7
parent01b127b7f332e65a400f9363139cd98bb1794219 (diff)
Fix modern menu not interacting properly with some mouse events (#844)
-rw-r--r--mm/2s2h/BenGui/Menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/2s2h/BenGui/Menu.cpp b/mm/2s2h/BenGui/Menu.cpp
index 9727b58ed..554038b64 100644
--- a/mm/2s2h/BenGui/Menu.cpp
+++ b/mm/2s2h/BenGui/Menu.cpp
@@ -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();
}