diff --git a/TextEditor.cpp b/TextEditor.cpp index a2b41389..c01888f6 100644 --- a/TextEditor.cpp +++ b/TextEditor.cpp @@ -1110,7 +1110,7 @@ void TextEditor::Render() } // Draw a tooltip on known identifiers/preprocessor symbols - if (ImGui::IsMousePosValid()) + if (ImGui::IsMousePosValid() && ImGui::IsWindowHovered()) { auto id = GetWordAt(ScreenPosToCoordinates(ImGui::GetMousePos())); if (!id.empty()) @@ -1136,7 +1136,6 @@ void TextEditor::Render() } } - ImGui::Dummy(ImVec2((longest + 2), mLines.size() * mCharAdvance.y)); if (mScrollToCursor)