From 828aee9932c41e28e27a191a170ec981dbd9131a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 1 May 2020 23:27:09 +0200 Subject: [PATCH] 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. --- Libraries/LibGUI/ComboBox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibGUI/ComboBox.cpp b/Libraries/LibGUI/ComboBox.cpp index 9efc0a780c..62461a8399 100644 --- a/Libraries/LibGUI/ComboBox.cpp +++ b/Libraries/LibGUI/ComboBox.cpp @@ -57,8 +57,7 @@ ComboBox::ComboBox() }; m_list_window = add(); - // 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(); m_list_view->horizontal_scrollbar().set_visible(false);