From 9858e235d269a8f630830e3b435ae29d4b34c8bd Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 2 Apr 2004 20:18:20 +0000 Subject: [PATCH] A decision whether add SWP_NOACTIVATE or not should be based on GetActiveWindow() test. --- dlls/x11drv/winpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/x11drv/winpos.c b/dlls/x11drv/winpos.c index 3e65aaf235d..440ab3eb273 100644 --- a/dlls/x11drv/winpos.c +++ b/dlls/x11drv/winpos.c @@ -755,7 +755,7 @@ static BOOL fixup_flags( WINDOWPOS *winpos ) 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) {