mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-09 18:15:19 +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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user