Let the WindowManager track the active window.

We draw the active window in a different color, obviously. :^)
This commit is contained in:
Andreas Kling 2018-10-13 17:42:24 +02:00
commit 44a32039be
Notes: sideshowbarker 2024-07-19 18:48:58 +09:00
4 changed files with 63 additions and 12 deletions

View file

@ -85,3 +85,9 @@ void Window::event(Event& event)
return Object::event(event);
}
bool Window::isActive() const
{
return WindowManager::the().activeWindow() == this;
}