mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
WindowServer: Rename Window::outer_stack -> Window::window_stack
Also, make it return a reference as aside from only three special situations (creating, destroying, and moving a window between stacks) a window should always be on a window stack. Any access during those brief situations would be a bug, so we should VERIFY this.
This commit is contained in:
parent
6ec35c91bc
commit
0fcb048448
Notes:
sideshowbarker
2024-07-18 11:04:11 +09:00
Author: https://github.com/tomuta
Commit: 0fcb048448
Pull-request: https://github.com/SerenityOS/serenity/pull/8307
6 changed files with 46 additions and 42 deletions
|
@ -664,9 +664,12 @@ void Window::clear_dirty_rects()
|
|||
|
||||
bool Window::is_active() const
|
||||
{
|
||||
if (!outer_stack())
|
||||
if (!m_window_stack) {
|
||||
// This may be called while destroying a window as part of
|
||||
// determining what the render rectangle is!
|
||||
return false;
|
||||
return outer_stack()->active_window() == this;
|
||||
}
|
||||
return m_window_stack->active_window() == this;
|
||||
}
|
||||
|
||||
Window* Window::blocking_modal_window()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue