mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 16:37:47 +00:00
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:
parent
d54dc22362
commit
35a230f974
9 changed files with 27 additions and 83 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue