https://bugs.winehq.org/show_bug.cgi?id=48121
--- Comment #3 from David Torok dt@zeroitlab.com --- (In reply to Zebediah Figura from comment #2)
(In reply to Ken Sharp from comment #1)
Patches don't normally get picked from here.
Have a look at https://wiki.winehq.org/Submitting_Patches The wine-devel list is a good place to send it if you just want someone to look at it first, though you can of course include the link to this bug report.
Given the patch is explicitly marked "proof of concept", I suspect it's not meant to be committed directly.
That is right :)
I am by no means knowledgeable in this windows subsystem; so I'm not even sure why "non-client" areas trigger this behaviour in unity. Is this "client"/"non-client" terminology the same as in Xorg/Wayland "client" terms? If so, then "non-client area" to me, sounds like the border/window outline. According to https://msdn.microsoft.com/zh-cn/ie/hh454917(v=vs.80) it's "Posted when a pointer makes contact over the non-client area of a window". It does not make sense to me why this interaction triggers the focus regain.
So indeed, this is definitely not for being taken directly.