summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-12-28 15:30:36 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-12-28 15:30:36 -0500
commit2aa963fc37dbf61a008031d82e2aac87bf89f9db (patch)
treeef3ebb8a375735ce19ffc775b410d95d169af51f /editor
parentcf0fac0eab12421f407d3acc1f1c84faead248bc (diff)
use WantCaptureMouse instead of trying to detect hovering in ImGui
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor.cpp b/editor/editor.cpp
index 542769a..008c51f 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -186,7 +186,7 @@ void PkeEditor_Tick(double delta) {
hoveredEntity = EntityHandle_MAX;
}
- bool imGuiHovered = ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow);
+ bool imGuiHovered = ImGui::GetIO().WantCaptureMouse;
if (selectedEntity != EntityHandle_MAX && !imGuiHovered) {
auto holder = PkeInput_Query(dbgCtrl_ClearSelection);