From e4e94cd43dfeb5946c14d9d00a519731386bbebc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 17 Jun 2021 20:11:07 +0200 Subject: 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. --- Userland/Services/WindowServer/WindowStack.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Userland/Services/WindowServer/WindowStack.h') diff --git a/Userland/Services/WindowServer/WindowStack.h b/Userland/Services/WindowServer/WindowStack.h index 6a2b7fb97a..768134c255 100644 --- a/Userland/Services/WindowServer/WindowStack.h +++ b/Userland/Services/WindowServer/WindowStack.h @@ -40,8 +40,13 @@ public: Window const* highlight_window() const { return m_highlight_window; } void set_highlight_window(Window*); + Window* active_window() { return m_active_window; } + Window const* active_window() const { return m_active_window; } + void set_active_window(Window*); + private: WeakPtr m_highlight_window; + WeakPtr m_active_window; Window::List m_windows; }; -- cgit v1.2.3