summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/mainApplication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/mainApplication.cpp b/ui/mainApplication.cpp
index d843ef1..6cb1037 100644
--- a/ui/mainApplication.cpp
+++ b/ui/mainApplication.cpp
@@ -36,6 +36,8 @@ MainApplication::processInputs()
return;
}
ImGui_ImplSDL2_ProcessEvent(&e);
- windows.applyOne(&Window::handleInput, e);
+ if (!ImGui::GetIO().WantCaptureMouse) {
+ windows.applyOne(&Window::handleInput, e);
+ }
}
}