[PATCH] comctl32/listview: Send NM_RELEASEDCAPTURE after the window focus has changed

Hugh McMaster hugh.mcmaster at outlook.com
Thu Sep 7 07:58:46 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 dlls/comctl32/listview.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 73eceff509..acb68fdfac 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -10219,9 +10219,6 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
 
   TRACE("(key=%hu, X=%u, Y=%u)\n", wKey, x, y);
 
-  /* send NM_RELEASEDCAPTURE notification */
-  if (!notify(infoPtr, NM_RELEASEDCAPTURE)) return 0;
-
   /* set left button down flag and record the click position */
   infoPtr->bLButtonDown = TRUE;
   infoPtr->ptClickPos = pt;
@@ -10316,7 +10313,10 @@ static LRESULT LISTVIEW_LButtonDown(LISTVIEW_INFO *infoPtr, WORD wKey, INT x, IN
         LISTVIEW_DeselectAll(infoPtr);
     ReleaseCapture();
   }
-  
+
+  /* send NM_RELEASEDCAPTURE notification */
+  if (!notify(infoPtr, NM_RELEASEDCAPTURE)) return 0;
+
   return 0;
 }
 
-- 
2.14.1




More information about the wine-patches mailing list