Use HashMap::remove() in some places that I wanted it.

This commit is contained in:
Andreas Kling 2018-10-13 14:26:37 +02:00
commit 6ea8ce500c
Notes: sideshowbarker 2024-07-19 18:49:12 +09:00
5 changed files with 10 additions and 5 deletions

View file

@ -118,6 +118,12 @@ void WindowManager::addWindow(Window& window)
m_windows.set(&window);
}
void WindowManager::removeWindow(Window& window)
{
ASSERT(m_windows.contains(&window));
m_windows.remove(&window);
}
void WindowManager::notifyTitleChanged(Window& window)
{
//printf("[WM] Window{%p} title set to '%s'\n", &window, window.title().characters());