bobbylight / AutoComplete

A code completion library for Swing text components, with special support for RSyntaxTextArea.
BSD 3-Clause "New" or "Revised" License
166 stars 55 forks source link

Hint popups don't get dismissed #91

Closed thomaspreisler2 closed 4 months ago

thomaspreisler2 commented 1 year ago

Using autocomplete library version 3.2.0

Sometimes the hint popup windows don't get dismissed and persist in the foreground. Screenshot 2023-07-10 at 9 50 49 AM

How to reproduce 1) bring up the popup hint windows 2) click on something outside the popups that will change the component hierarchy 3) the popups will hang around and you can't dismiss them.

Looked at the source code and I think the fix is a missing call to hideChildWindows() in the removeFrom(Window w) method in AutoCompletion.java:

/**

Alternatively it can be fixed by adding hideChildWindows() to the hierarchyChanged(HierarchyEvent e). method.