ddraw/tests: Look for more messages when losing focus.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2018-10-13 16:13:50 -07:00 committed by Alexandre Julliard
parent 27ba57e804
commit 4e80641d87
4 changed files with 20 additions and 4 deletions

View File

@ -2447,8 +2447,12 @@ static void test_coop_level_mode_set(void)
static const struct message exclusive_focus_loss_messages[] =
{
{WM_ACTIVATE, TRUE, WA_INACTIVE},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window resize due to mode change. */
{WM_WINDOWPOSCHANGED, FALSE, 0},
{WM_SIZE, TRUE, SIZE_RESTORED}, /* Generated by DefWindowProc. */
{WM_DISPLAYCHANGE, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0},
{WM_KILLFOCUS, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window minimized. */
/* Like d3d8 and d3d9 ddraw seems to use SW_SHOWMINIMIZED instead of
* SW_MINIMIZED, causing a recursive window activation that does not
* produce the same result in Wine yet. Ignore the difference for now.

View File

@ -2572,8 +2572,12 @@ static void test_coop_level_mode_set(void)
static const struct message exclusive_focus_loss_messages[] =
{
{WM_ACTIVATE, TRUE, WA_INACTIVE},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window resize due to mode change. */
{WM_WINDOWPOSCHANGED, FALSE, 0},
{WM_SIZE, TRUE, SIZE_RESTORED}, /* Generated by DefWindowProc. */
{WM_DISPLAYCHANGE, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0},
{WM_KILLFOCUS, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window minimized. */
/* Like d3d8 and d3d9 ddraw seems to use SW_SHOWMINIMIZED instead of
* SW_MINIMIZED, causing a recursive window activation that does not
* produce the same result in Wine yet. Ignore the difference for now.

View File

@ -2713,8 +2713,12 @@ static void test_coop_level_mode_set(void)
static const struct message exclusive_focus_loss_messages[] =
{
{WM_ACTIVATE, TRUE, WA_INACTIVE},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window resize due to mode change. */
{WM_WINDOWPOSCHANGED, FALSE, 0},
{WM_SIZE, TRUE, SIZE_RESTORED}, /* Generated by DefWindowProc. */
{WM_DISPLAYCHANGE, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0},
{WM_KILLFOCUS, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window minimized. */
/* Like d3d8 and d3d9 ddraw seems to use SW_SHOWMINIMIZED instead of
* SW_MINIMIZED, causing a recursive window activation that does not
* produce the same result in Wine yet. Ignore the difference for now.

View File

@ -2442,8 +2442,12 @@ static void test_coop_level_mode_set(void)
static const struct message exclusive_focus_loss_messages[] =
{
{WM_ACTIVATE, TRUE, WA_INACTIVE},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window resize due to mode change. */
{WM_WINDOWPOSCHANGED, FALSE, 0},
{WM_SIZE, TRUE, SIZE_RESTORED}, /* Generated by DefWindowProc. */
{WM_DISPLAYCHANGE, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0},
{WM_KILLFOCUS, FALSE, 0},
{WM_WINDOWPOSCHANGING, FALSE, 0}, /* Window minimized. */
/* Like d3d8 and d3d9 ddraw seems to use SW_SHOWMINIMIZED instead of
* SW_MINIMIZED, causing a recursive window activation that does not
* produce the same result in Wine yet. Ignore the difference for now.