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)