Module: wine Branch: master Commit: ebe3cea01d127de612171b6276c473a2b455266d URL: https://source.winehq.org/git/wine.git/?a=commit;h=ebe3cea01d127de612171b627... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Mon Jan 31 14:18:08 2022 +0100 user32/tests: Add proper tests for SetActiveWindow(0). Shows that it switches focus to some other process window and back, and only on some older Windows versions. Win10 simply returns 0 and does nothing. Stop calling it elsewhere, as it makes focus go to an unpredictable window, which may very well not be ours. Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=51391 Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=51130 Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/win.c | 209 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 156 insertions(+), 53 deletions(-) Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=ebe3cea01d127de612171...