Commit feaf81f6 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Use SetWindowPos() to make the focus window active.

parent e279fa2a
......@@ -1621,6 +1621,7 @@ static void test_wndproc(void)
static const struct message messages[] =
{
{WM_WINDOWPOSCHANGING, FOCUS_WINDOW},
{WM_ACTIVATE, FOCUS_WINDOW},
{WM_SETFOCUS, FOCUS_WINDOW},
{WM_WINDOWPOSCHANGING, DEVICE_WINDOW},
......
......@@ -2465,6 +2465,7 @@ static void test_wndproc(void)
static const struct message messages[] =
{
{WM_WINDOWPOSCHANGING, FOCUS_WINDOW},
{WM_ACTIVATE, FOCUS_WINDOW},
{WM_SETFOCUS, FOCUS_WINDOW},
{0, 0},
......
......@@ -3272,6 +3272,7 @@ static void test_wndproc(void)
static const UINT messages[] =
{
WM_WINDOWPOSCHANGING,
WM_ACTIVATE,
WM_SETFOCUS,
0,
......
......@@ -1763,7 +1763,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_AcquireFocusWindow(IWineD3DDevice *ifac
}
device->focus_window = window;
SetForegroundWindow(window);
SetWindowPos(window, 0, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE);
return WINED3D_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment