mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
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.
This commit is contained in:
parent
419eb7ab97
commit
288c46dbdc
6 changed files with 10 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue