diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-06 00:57:51 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-06 00:58:30 +0200 |
commit | ef9fbef4c695a096f6eb4f3751b513482af36e15 (patch) | |
tree | 08c10881d4d1e535d1c9cc5f83e87697b50f9af4 /Servers/WindowServer/WSMessage.h | |
parent | 74142d78c1beb98d34efb00840fe79fe331f7914 (diff) | |
download | serenity-ef9fbef4c695a096f6eb4f3751b513482af36e15.zip |
Taskbar: Show minimized window titles in [brackets].
Had to plumb the minimization state from WindowServer to Toolbar in order
to implement this.
Diffstat (limited to 'Servers/WindowServer/WSMessage.h')
-rw-r--r-- | Servers/WindowServer/WSMessage.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSMessage.h b/Servers/WindowServer/WSMessage.h index d67bc1c8c8..051e86bffa 100644 --- a/Servers/WindowServer/WSMessage.h +++ b/Servers/WindowServer/WSMessage.h @@ -632,12 +632,13 @@ public: class WSWMWindowStateChangedEvent : public WSWMEvent { public: - WSWMWindowStateChangedEvent(int client_id, int window_id, const String& title, const Rect& rect, bool is_active, WSWindowType window_type) + WSWMWindowStateChangedEvent(int client_id, int window_id, const String& title, const Rect& rect, bool is_active, WSWindowType window_type, bool is_minimized) : WSWMEvent(WSMessage::WM_WindowStateChanged, client_id, window_id) , m_title(title) , m_rect(rect) , m_active(is_active) , m_window_type(window_type) + , m_minimized(is_minimized) { } @@ -645,10 +646,12 @@ public: Rect rect() const { return m_rect; } bool is_active() const { return m_active; } WSWindowType window_type() const { return m_window_type; } + bool is_minimized() const { return m_minimized; } private: String m_title; Rect m_rect; bool m_active; WSWindowType m_window_type; + bool m_minimized; }; |