diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2022-10-24 21:01:24 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2022-10-26 17:02:00 +0200 |
commit | 288c46dbdc144868574503f857a9184cd21483b3 (patch) | |
tree | 19844b4656890b7c04299bc66c4392ae96ce1adb /Userland/Libraries/LibGUI/ComboBox.cpp | |
parent | 419eb7ab97eaa85e5df4ffacad411aed631986d0 (diff) | |
download | serenity-288c46dbdc144868574503f857a9184cd21483b3.zip |
LibGUI: Make sure combobox list windows can't be moved
This is done by adding a new window type (Popup) and using it for the
combobox list window. Other incorrect uses of the Tooltip window type
have also been updated to use the new window type.
Diffstat (limited to 'Userland/Libraries/LibGUI/ComboBox.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/ComboBox.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/ComboBox.cpp b/Userland/Libraries/LibGUI/ComboBox.cpp index dc8f3041c1..7895b108ff 100644 --- a/Userland/Libraries/LibGUI/ComboBox.cpp +++ b/Userland/Libraries/LibGUI/ComboBox.cpp @@ -113,6 +113,7 @@ ComboBox::ComboBox() }; m_list_window = add<Window>(window()); + m_list_window->set_window_type(GUI::WindowType::Popup); m_list_window->set_frameless(true); m_list_window->set_window_mode(WindowMode::CaptureInput); m_list_window->on_active_input_change = [this](bool is_active_input) { |