diff options
Diffstat (limited to 'Services/Taskbar/WindowIdentifier.h')
-rw-r--r-- | Services/Taskbar/WindowIdentifier.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Services/Taskbar/WindowIdentifier.h b/Services/Taskbar/WindowIdentifier.h index cdb645449a..c6e996992c 100644 --- a/Services/Taskbar/WindowIdentifier.h +++ b/Services/Taskbar/WindowIdentifier.h @@ -30,6 +30,7 @@ class WindowIdentifier { public: + WindowIdentifier() = default; WindowIdentifier(int client_id, int window_id) : m_client_id(client_id) , m_window_id(window_id) @@ -44,6 +45,11 @@ public: return m_client_id == other.m_client_id && m_window_id == other.m_window_id; } + bool is_valid() const + { + return m_client_id != -1 && m_window_id != -1; + } + private: int m_client_id { -1 }; int m_window_id { -1 }; |