winex11.drv: Send HTMENU instead of HTCAPTION to query window activation.
commitcfcc280905b7804efde8f42bcd6bddbe5ebd8cad
authorRémi Bernon <rbernon@codeweavers.com>
Thu, 26 Dec 2019 11:51:23 +0000 (26 12:51 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 26 Dec 2019 20:56:04 +0000 (26 21:56 +0100)
tree6cc27d180b1fa1ce0757f252578a0dfa2b0144db
parent6c47355006b1d9095ac0dedc612eafdb1cdd03f2
winex11.drv: Send HTMENU instead of HTCAPTION to query window activation.

Commit 71d35d8940118bc6de6522913fb8c473fa5b2c24 broke the way
WM_TAKE_FOCUS protocol is implemented: WM_MOUSEACTIVATE now replies
MA_NOACTIVATE by default when using HTCAPTION.

We use the WM_MOUSEACTIVATE -although Windows does not- regardless of
the way focus is changed to check whether a window wants focus, and
Windows sometimes changes focus regardless of the message reply.

Steam and the Wine system tray are affected for instance.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/winex11.drv/event.c