mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
WindowServer: Keep track of which WindowStack a Window is part of
Each Window now knows which WindowStack it's part of. We call this the Window::outer_stack(), in preparation for supporting inner stacks. :^)
This commit is contained in:
parent
d0bc3d6002
commit
2b0e0b602c
3 changed files with 11 additions and 1 deletions
|
@ -167,7 +167,7 @@ void WindowManager::add_window(Window& window)
|
|||
{
|
||||
bool is_first_window = m_window_stack.is_empty();
|
||||
|
||||
m_window_stack.windows().append(window);
|
||||
m_window_stack.add(window);
|
||||
|
||||
if (window.is_fullscreen()) {
|
||||
Core::EventLoop::current().post_event(window, make<ResizeEvent>(Screen::the().rect()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue