diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-04 13:19:26 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-04 13:19:26 +0200 |
commit | 7b1384c4ef3041df1b44351fb4907d6f40d95b24 (patch) | |
tree | b7fac5c11370abbcdf60aeeb29c8d70d44bbc46b /Servers/WindowServer/WSMessage.h | |
parent | 19eb81485097138139f9058267494d90e32af58a (diff) | |
download | serenity-7b1384c4ef3041df1b44351fb4907d6f40d95b24.zip |
Taskbar: Plumb window active state from the WindowServer to the taskbar.
Diffstat (limited to 'Servers/WindowServer/WSMessage.h')
-rw-r--r-- | Servers/WindowServer/WSMessage.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Servers/WindowServer/WSMessage.h b/Servers/WindowServer/WSMessage.h index 5d63a89359..3911a48d6f 100644 --- a/Servers/WindowServer/WSMessage.h +++ b/Servers/WindowServer/WSMessage.h @@ -605,19 +605,22 @@ private: class WSWMWindowAddedEvent : public WSWMEvent { public: - WSWMWindowAddedEvent(int client_id, int window_id, const String& title, const Rect& rect) + WSWMWindowAddedEvent(int client_id, int window_id, const String& title, const Rect& rect, bool is_active) : WSWMEvent(WSMessage::WM_WindowAdded, client_id, window_id) , m_title(title) , m_rect(rect) + , m_active(is_active) { } String title() const { return m_title; } Rect rect() const { return m_rect; } + bool is_active() const { return m_active; } private: String m_title; Rect m_rect; + bool m_active; }; class WSWMWindowRemovedEvent : public WSWMEvent { @@ -630,17 +633,20 @@ public: class WSWMWindowStateChangedEvent : public WSWMEvent { public: - WSWMWindowStateChangedEvent(int client_id, int window_id, const String& title, const Rect& rect) + WSWMWindowStateChangedEvent(int client_id, int window_id, const String& title, const Rect& rect, bool is_active) : WSWMEvent(WSMessage::WM_WindowStateChanged, client_id, window_id) , m_title(title) , m_rect(rect) + , m_active(is_active) { } String title() const { return m_title; } Rect rect() const { return m_rect; } + bool is_active() const { return m_active; } private: String m_title; Rect m_rect; + bool m_active; }; |