mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +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
Notes:
sideshowbarker
2024-07-17 07:46:30 +09:00
Author: https://github.com/thankyouverycool
Commit: 35a230f974
Pull-request: https://github.com/SerenityOS/serenity/pull/15009
Issue: https://github.com/SerenityOS/serenity/issues/10970
Issue: https://github.com/SerenityOS/serenity/issues/13036
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