diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-23 18:47:22 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-23 18:47:22 +0300 |
commit | 47f15dd571c33bee3ee6f08d1a1151bb0b58e548 (patch) | |
tree | 88ed957cbe0f4d8073ea914d5def81523a11af37 /src/mir_app | |
parent | cff961c2dd2fef9ac1ab2367de3e95f2a8bbd63d (diff) |
fixes #2016 (rclick behaves strangely in SRMM nick list)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index d84db16bb2..fad905e215 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -785,7 +785,7 @@ MIR_APP_DLL(UINT) Chat_CreateGCMenu(HWND hwnd, HMENU hMenu, POINT pt, SESSION_IN NotifyEventHooks(hevBuildMenuEvent, 0, (WPARAM)&gcmi);
- return TrackPopupMenu(hMenu, TPM_RETURNCMD, pt.x, pt.y, 0, hwnd, nullptr);
+ return TrackPopupMenu(hMenu, TPM_RETURNCMD | TPM_RIGHTBUTTON, pt.x, pt.y, 0, hwnd, nullptr);
}
MIR_APP_DLL(void) Chat_DestroyGCMenu(HMENU hMenu, int iIndex)
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index c4f00bc91c..cff7201f24 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -500,14 +500,6 @@ LRESULT CSrmmBaseDialog::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam RECT rc; switch (msg) { - case WM_RBUTTONDOWN: - m_nickList.SendMsg(WM_LBUTTONDOWN, wParam, lParam); - break; - - case WM_RBUTTONUP: - m_nickList.SendMsg(WM_LBUTTONUP, wParam, lParam); - break; - case WM_MEASUREITEM: { MEASUREITEMSTRUCT *mis = (MEASUREITEMSTRUCT *)lParam; |