1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

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
parent 560405667e
commit 44a32039be
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;
}