From d2feb899212b71faa50958c3bdd53ef3214c5b56 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 24 Mar 2024 15:27:29 +0300 Subject: fixes #4290 completely --- plugins/NewEventNotify/src/main.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'plugins/NewEventNotify/src') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index f711c2aa5e..dd4205ea2e 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -142,18 +142,11 @@ int CMPlugin::Load() ///////////////////////////////////////////////////////////////////////////////////////// // Check Window Message function -// Took this snippet of code from "EventNotify" by micron-x, thx *g* -// checks if the message-dialog window is already opened -// return values: -// 0 - No window found -// 1 - Split-mode window found -// 2 - Single-mode window found - int CheckMsgWnd(MCONTACT hContact) { MessageWindowData mwd; if (!Srmm_GetWindowData(hContact, mwd)) - if (mwd.hwndWindow != nullptr && (mwd.uState & MSG_WINDOW_STATE_EXISTS)) + if (mwd.hwndWindow != nullptr && (mwd.uState & MSG_WINDOW_STATE_FOCUS)) return 1; return 0; -- cgit v1.2.3