mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +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:
parent
2b0e0b602c
commit
e4e94cd43d
5 changed files with 44 additions and 37 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue