Henri Verbeet : wined3d: Make the focus window also the foreground window.

Alexandre Julliard julliard at winehq.org
Thu Mar 18 11:19:27 CDT 2010


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Mar 17 21:59:48 2010 +0100

wined3d: Make the focus window also the foreground window.

---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 0968bfc..ed6c031 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1571,7 +1571,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
         }
     }
 
-    if (This->focus_window) SetFocus(This->focus_window);
+    if (This->focus_window) SetForegroundWindow(This->focus_window);
 
     /* Setup the implicit swapchain. This also initializes a context. */
     TRACE("Creating implicit swapchain\n");




More information about the wine-cvs mailing list