summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-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);
+ }
}
}