summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_core/src/CCtrlListView.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir_core/src/CCtrlListView.cpp b/src/mir_core/src/CCtrlListView.cpp
index b41aa8e085..ec0995e4d2 100644
--- a/src/mir_core/src/CCtrlListView.cpp
+++ b/src/mir_core/src/CCtrlListView.cpp
@@ -168,6 +168,7 @@ void CCtrlListView::GetCaretPos(CContextMenuPos &pos) const
else {
LVHITTESTINFO hti;
hti.pt = pos.pt;
+ ScreenToClient(m_hwnd, &hti.pt);
if (SubItemHitTest(&hti) != -1) {
pos.iCurr = hti.iItem;
return;