LibGUI+Taskbar+WindowServer: Remove mode and parent methods from Taskbar

Taskbar only needs a modeless parent and the activity state of the
modal chain to update buttons.
This commit is contained in:
thankyouverycool 2022-08-23 16:42:00 -04:00 committed by Andreas Kling
commit 35a230f974
Notes: sideshowbarker 2024-07-17 07:46:30 +09:00
9 changed files with 27 additions and 83 deletions

View file

@ -12,18 +12,6 @@ WindowList& WindowList::the()
return s_the;
}
Window* WindowList::find_parent(Window const& window)
{
if (!window.parent_identifier().is_valid())
return nullptr;
for (auto& it : m_windows) {
auto& w = *it.value;
if (w.identifier() == window.parent_identifier())
return &w;
}
return nullptr;
}
Window* WindowList::window(WindowIdentifier const& identifier)
{
auto it = m_windows.find(identifier);