diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-17 20:11:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-18 17:40:05 +0200 |
commit | e4e94cd43dfeb5946c14d9d00a519731386bbebc (patch) | |
tree | 6f345083397ce9bab9078a8ba7f012df8f3190d0 /Userland/Services/WindowServer/WindowStack.h | |
parent | 2b0e0b602c6ddd2405b5d74a1c90530e2ef44cdf (diff) | |
download | serenity-e4e94cd43dfeb5946c14d9d00a519731386bbebc.zip |
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.
Diffstat (limited to 'Userland/Services/WindowServer/WindowStack.h')
-rw-r--r-- | Userland/Services/WindowServer/WindowStack.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<Window> m_highlight_window; + WeakPtr<Window> m_active_window; Window::List m_windows; }; |