From a4549ec2b353a0995bcfba17b7d42c047e7c8ee8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Jun 2018 22:35:20 +0300 Subject: fixes #1401 (fixes inactive session detection) --- src/mir_app/src/chat_tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mir_app') diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 79c5022557..986e25a4db 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -284,7 +284,7 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight if (!gce || !si || gce->bIsMe || si->iType == GCW_SERVER) return FALSE; - BOOL bInactive = si->pDlg == nullptr || !ContainsWindow(GetForegroundWindow(), si->pDlg->GetHwnd()); + BOOL bInactive = si->pDlg == nullptr || !si->pDlg->IsActive(); int iEvent = gce->iType; -- cgit v1.2.3