RĂ©mi Bernon rbernon@codeweavers.com writes:
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.
This breaks the tests here:
../../../tools/runtest -q -P wine -T ../../.. -M user32.dll -p user32_test.exe win && touch win.ok win.c:2720: Test failed: GetActiveWindow() = 00020044 win.c:2720: Test failed: GetForegroundWindow() = 00020044 win.c:2720: Test failed: GetFocus() = 00020044 win.c:3374: Test failed: Expected active window 0094009E, got 00020044. win.c:3375: Test failed: Expected focus window 0094009E, got 00020044. make: *** [Makefile:706: win.ok] Error 5