LibGUI: Make ComboBox list pop-up windows frameless

This is much better than the hack we had of making them Tooltip windows
since frameless windows end up at the right layer in the window stack
automatically, and always get yanked above the parent window simply by
being child windows.
This commit is contained in:
Andreas Kling 2020-05-01 23:27:09 +02:00
parent d847304cb9
commit 828aee9932
Notes: sideshowbarker 2024-07-19 07:07:15 +09:00

View File

@ -57,8 +57,7 @@ ComboBox::ComboBox()
};
m_list_window = add<Window>();
// FIXME: This is obviously not a tooltip window, but it's the closest thing to what we want atm.
m_list_window->set_window_type(WindowType::Tooltip);
m_list_window->set_frameless(true);
m_list_view = m_list_window->set_main_widget<ListView>();
m_list_view->horizontal_scrollbar().set_visible(false);