summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-10 20:58:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-10 20:58:23 +0300
commit15337f5ce35244b0a48a0143553ca31b9457501b (patch)
treeb03fad3b7d9f689bb36b4ec1240b96901692bb95 /src/core
parent4f530bd374b842139b174d07e6926aaa421457d9 (diff)
fixes #2253 (StdMsg grabbing/stealing focus on incoming message)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdmsg/src/globals.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}