Henri Verbeet : wined3d: Focus the focus window.
Module: wine Branch: master Commit: b49e684f5d2447171589acccb37ffee81ffffbe2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b49e684f5d2447171589acccb3... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Tue Dec 22 18:32:14 2009 +0100 wined3d: Focus the focus window. --- dlls/wined3d/device.c | 2 ++ dlls/wined3d/swapchain.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index dac4ef6..31b3187 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1456,6 +1456,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, } } + SetFocus(This->focus_window); + /* Setup the implicit swapchain. This also initializes a context. */ TRACE("Creating implicit swapchain\n"); hr = IWineD3DDeviceParent_CreateSwapChain(This->device_parent, diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 6970ee0..ad257f5 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -603,7 +603,7 @@ void swapchain_setup_fullscreen_window(IWineD3DSwapChainImpl *swapchain, UINT w, SetWindowLongW(window, GWL_STYLE, style); SetWindowLongW(window, GWL_EXSTYLE, exstyle); - SetWindowPos(window, HWND_TOP, 0, 0, w, h, SWP_FRAMECHANGED | SWP_SHOWWINDOW); + SetWindowPos(window, HWND_TOP, 0, 0, w, h, SWP_FRAMECHANGED | SWP_SHOWWINDOW | SWP_NOACTIVATE); device->filter_messages = filter_messages; }
participants (1)
-
Alexandre Julliard