mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +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
|
@ -592,7 +592,9 @@ void Window::clear_dirty_rects()
|
|||
|
||||
bool Window::is_active() const
|
||||
{
|
||||
return WindowManager::the().active_window() == this;
|
||||
if (!outer_stack())
|
||||
return false;
|
||||
return outer_stack()->active_window() == this;
|
||||
}
|
||||
|
||||
Window* Window::blocking_modal_window()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue