summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-29 14:39:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-29 14:39:25 +0300
commited9ebbcc1c9dd8dd7583ac5f5b4260a41ae84079 (patch)
tree285798317245f13a1ef0ce6891ce3a06566b8ecd /plugins/Scriver
parent0868340cf0cdb100caf7f124069d98548ec00bd2 (diff)
fixes #3375 (StdMsg: double click in the log window does nothing)
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/chat_main.cpp2
-rw-r--r--plugins/Scriver/src/msgdialog.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Scriver/src/chat_main.cpp b/plugins/Scriver/src/chat_main.cpp
index 12acbf6113..0297bbef01 100644
--- a/plugins/Scriver/src/chat_main.cpp
+++ b/plugins/Scriver/src/chat_main.cpp
@@ -125,7 +125,7 @@ static void ShowRoom(SESSION_INFO *si)
else pDlg = si->pDlg;
pDlg->UpdateTabControl();
- SendMessage(pDlg->GetHwnd(), WM_MOUSEACTIVATE, 0, 0);
+ SendMessage(pDlg->GetHwnd(), WM_ACTIVATE, WA_ACTIVE, 0);
SetFocus(GetDlgItem(pDlg->GetHwnd(), IDC_SRMM_MESSAGE));
}
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 12bfe4855d..8b9778537f 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -1069,7 +1069,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
FixTabIcons();
if (!m_si->pDlg) {
g_chatApi.ShowRoom(m_si);
- SendMessage(m_hwnd, WM_MOUSEACTIVATE, 0, 0);
+ SendMessage(m_hwnd, WM_ACTIVATE, WA_ACTIVE, 0);
}
break;
}
@@ -1079,8 +1079,6 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
if (LOWORD(wParam) != WA_ACTIVE)
break;
- __fallthrough;
- case WM_MOUSEACTIVATE:
if (isChat()) {
SetFocus(m_message.GetHwnd());