diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-08 20:05:34 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-08 20:05:34 +0200 |
commit | acaea8d0a8a6208181f90d33f31a0270089017b6 (patch) | |
tree | f54b2813f683822548e714a8fed82d7134f2487b /src/core/stdmsg | |
parent | 05af149ef6d5b35e7c7a074f37e59462b3dc2d56 (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.cpp | 5 |
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))
|