#5: A decision whether add SWP_NOACTIVATE or not should be based on GetActiveWindow() test

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 1 08:42:03 CST 2004


Hello,

Please apply after #4.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    A decision whether add SWP_NOACTIVATE or not should be based
    on GetActiveWindow() test.

--- cvs/hq/wine/dlls/x11drv/winpos.c	2004-04-01 22:51:08.000000000 +0900
+++ wine/dlls/x11drv/winpos.c	2004-04-01 22:54:18.000000000 +0900
@@ -755,7 +755,7 @@ static BOOL fixup_flags( WINDOWPOS *winp
     if ((wndPtr->rectWindow.left == winpos->x) && (wndPtr->rectWindow.top == winpos->y))
         winpos->flags |= SWP_NOMOVE;    /* Already the right position */
 
-    if (winpos->hwnd == GetForegroundWindow())
+    if (winpos->hwnd == GetActiveWindow())
         winpos->flags |= SWP_NOACTIVATE;   /* Already active */
     else if ((wndPtr->dwStyle & (WS_POPUP | WS_CHILD)) != WS_CHILD)
     {






More information about the wine-patches mailing list