diff options
Diffstat (limited to 'plugins/Clist_nicer/src/clui.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/clui.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp index ea83885538..dab1bcb663 100644 --- a/plugins/Clist_nicer/src/clui.cpp +++ b/plugins/Clist_nicer/src/clui.cpp @@ -1613,12 +1613,10 @@ buttons_done: case WM_CONTEXTMENU: { RECT rc; - POINT pt; + GetWindowRect(pcli->hwndContactTree, &rc); - pt.x = (short)LOWORD(lParam); - pt.y = (short)HIWORD(lParam); // x/y might be -1 if it was generated by a kb click - GetWindowRect(pcli->hwndContactTree, &rc); + POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
if (pt.x == -1 && pt.y == -1) { // all this is done in screen-coords! GetCursorPos(&pt); |