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

Nikolay Sivov bunglehead at gmail.com
Fri Sep 8 03:48:21 CDT 2017


What use case does this fix? With this patch notification order is more
broken than without.

On Windows when clicking on item of unfocused control gives roughly:

NM_RELEASEDCAPTURE
LVN_ITEMCHANGING/LVN_ITEMCHANGED
NM_CUSTOMDRAW
NM_SETFOCUS
NM_CLICK

Without this patch we currently do:

NM_RELEASEDCAPTURE
LVN_ITEMCHANGIN/LVN_ITEMCHANGED
NM_SETFOCUS
NM_CLICK

With the patch:

LVN_ITEMCHANGING/LVN_ITEMCHANGED
NM_SETFOCUS
NM_RELEASECAPTURE
NM_CLICK

(in both cases on Wine sequence is interleaved with some NM_CUSTOMDRAW)



More information about the wine-devel mailing list