summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/msgs.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-06-03 22:35:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-06-03 22:35:20 +0300
commita4549ec2b353a0995bcfba17b7d42c047e7c8ee8 (patch)
tree061300126750e4865ef0bb5b48ddab4bc43d0416 /plugins/Scriver/src/msgs.h
parent0fae00f05addee2e71081038b6700aa5eaeaf20b (diff)
fixes #1401 (fixes inactive session detection)
Diffstat (limited to 'plugins/Scriver/src/msgs.h')
-rw-r--r--plugins/Scriver/src/msgs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Scriver/src/msgs.h b/plugins/Scriver/src/msgs.h
index 16c6b6e5d6..2ca2855895 100644
--- a/plugins/Scriver/src/msgs.h
+++ b/plugins/Scriver/src/msgs.h
@@ -90,6 +90,11 @@ public:
virtual void LoadSettings() override;
virtual void SetStatusText(const wchar_t*, HICON) override;
+ bool IsActive() const
+ {
+ return GetActiveWindow() == m_hwndParent && GetForegroundWindow() == m_hwndParent && m_pParent->hwndActive == m_hwnd;
+ }
+
void Reattach(HWND hwndContainer);
ParentWindowData *m_pParent;