From 15337f5ce35244b0a48a0143553ca31b9457501b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 Mar 2020 20:58:23 +0300 Subject: fixes #2253 (StdMsg grabbing/stealing focus on incoming message) --- src/core/stdmsg/src/globals.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp index 8a5db71ed9..af311be1b4 100644 --- a/src/core/stdmsg/src/globals.cpp +++ b/src/core/stdmsg/src/globals.cpp @@ -65,12 +65,12 @@ static int dbaddedevent(WPARAM hContact, LPARAM hDbEvent) if (hContact) { HWND h = Srmm_FindWindow(hContact); if (h) - ::PostMessage(h, HM_DBEVENTADDED, hContact, hDbEvent); + ::SendMessage(h, HM_DBEVENTADDED, hContact, hDbEvent); MCONTACT hEventContact = db_event_getContact(hDbEvent); if (hEventContact != hContact) if ((h = Srmm_FindWindow(hEventContact)) != nullptr) - ::PostMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent); + ::SendMessage(h, HM_DBEVENTADDED, hEventContact, hDbEvent); } return 0; } -- cgit v1.2.3