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:
parent
560405667e
commit
44a32039be
4 changed files with 63 additions and 12 deletions
|
@ -85,3 +85,9 @@ void Window::event(Event& event)
|
|||
|
||||
return Object::event(event);
|
||||
}
|
||||
|
||||
bool Window::isActive() const
|
||||
{
|
||||
return WindowManager::the().activeWindow() == this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue