wined3d: Use SetWindowPos() to make the focus window active.
This commit is contained in:
parent
e279fa2afd
commit
feaf81f60d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue