summaryrefslogtreecommitdiff
path: root/src/core/stdmsg
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-08 20:05:34 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-05-08 20:05:34 +0200
commitacaea8d0a8a6208181f90d33f31a0270089017b6 (patch)
treef54b2813f683822548e714a8fed82d7134f2487b /src/core/stdmsg
parent05af149ef6d5b35e7c7a074f37e59462b3dc2d56 (diff)
fixes #1325 (StdMsg plugin doesn't change input focus on tabs switch)
Diffstat (limited to 'src/core/stdmsg')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 59f3cdb76f..0a5ef46008 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -1084,9 +1084,10 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
if (LOWORD(wParam) != WA_ACTIVE)
break;
- SetFocus(m_message.GetHwnd());
- // fall through
+ __fallthrough;
+
case WM_MOUSEACTIVATE:
+ SetFocus(m_message.GetHwnd());
UpdateTitle();
UpdateLastMessage();
if (KillTimer(m_hwnd, TIMERID_FLASHWND))