LibGUI: Make the autocomplete box window a child of its editor's window

Fixes #4761.
This commit is contained in:
AnotherTest 2021-01-03 03:20:49 +03:30 committed by Andreas Kling
parent 6dbdbec835
commit 7f7656fe4e
Notes: sideshowbarker 2024-07-19 00:10:53 +09:00

View file

@ -103,7 +103,7 @@ AutocompleteBox::~AutocompleteBox() { }
AutocompleteBox::AutocompleteBox(TextEditor& editor)
: m_editor(editor)
{
m_popup_window = GUI::Window::construct();
m_popup_window = GUI::Window::construct(m_editor->window());
m_popup_window->set_window_type(GUI::WindowType::Tooltip);
m_popup_window->set_rect(0, 0, 200, 100);