summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
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);