Henri Verbeet : wined3d: Focus the focus window.

Alexandre Julliard julliard at winehq.org
Wed Dec 23 10:04:10 CST 2009


Module: wine
Branch: master
Commit: b49e684f5d2447171589acccb37ffee81ffffbe2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b49e684f5d2447171589acccb37ffee81ffffbe2

Author: Henri Verbeet <hverbeet at 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;
 }




More information about the wine-cvs mailing list