mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
Taskbar: Plumb window active state from the WindowServer to the taskbar.
This commit is contained in:
parent
19eb814850
commit
7b1384c4ef
11 changed files with 70 additions and 29 deletions
|
@ -57,11 +57,15 @@ public:
|
|||
GButton* button() { return m_button; }
|
||||
void set_button(GButton* button) { m_button = button; }
|
||||
|
||||
void set_active(bool active) { m_active = active; }
|
||||
bool is_active() const { return m_active; }
|
||||
|
||||
private:
|
||||
WindowIdentifier m_identifier;
|
||||
String m_title;
|
||||
Rect m_rect;
|
||||
GButton* m_button { nullptr };
|
||||
bool m_active { false };
|
||||
};
|
||||
|
||||
class WindowList {
|
||||
|
@ -75,6 +79,8 @@ public:
|
|||
Window& ensure_window(const WindowIdentifier&);
|
||||
void remove_window(const WindowIdentifier&);
|
||||
|
||||
Function<GButton*()> aid_create_button;
|
||||
|
||||
private:
|
||||
HashMap<WindowIdentifier, OwnPtr<Window>> m_windows;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue