mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
WindowServer: Allow each WindowStack to have an active window
A window with an inner stack needs to keep track of which inner window is active.
This commit is contained in:
parent
2b0e0b602c
commit
e4e94cd43d
5 changed files with 44 additions and 37 deletions
|
@ -46,4 +46,12 @@ void WindowStack::set_highlight_window(Window* window)
|
|||
m_highlight_window = window->make_weak_ptr<Window>();
|
||||
}
|
||||
|
||||
void WindowStack::set_active_window(Window* window)
|
||||
{
|
||||
if (!window)
|
||||
m_active_window = nullptr;
|
||||
else
|
||||
m_active_window = window->make_weak_ptr<Window>();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue