From 585f434ff4f83e9a7a97b4429b9bfd201c9ac3f9 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 14 Sep 2016 14:35:03 +0000 Subject: [PATCH] [NtUser] - Remove unneeded code and information, the problem is in focus.c:SFW. See CORE-11324. svn path=/trunk/; revision=72676 --- reactos/win32ss/user/ntuser/winpos.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/reactos/win32ss/user/ntuser/winpos.c b/reactos/win32ss/user/ntuser/winpos.c index 25004d7541b..44def172d3c 100644 --- a/reactos/win32ss/user/ntuser/winpos.c +++ b/reactos/win32ss/user/ntuser/winpos.c @@ -2212,24 +2212,6 @@ co_WinPosSetWindowPos( { co_IntSendMessageNoWait(WinPos.hwnd, WM_CHILDACTIVATE, 0, 0); } -#if 0 ////// Break see CORE-11324 - /* Do not allow setting if already active. - Fix A : wine msg test_SetParent:WmSetParentSeq_2:25 msg! - Recursion broke the tests. - */ - else if ( pti->MessageQueue->spwndActive != Window || - pti->MessageQueue != gpqForeground ) // This fixes the breakage at boot time caused by the above line! - { - // Inside SAW? Fixes Api AttachThreadInput tests. - TRACE("SetWindowPos Set FG Window! hWnd %p\n",WinPos.hwnd); - if (!(Window->state & WNDS_BEINGACTIVATED)) - { - TRACE("SetWindowPos Set FG Window!\n"); - // Fixes SW_HIDE issues. Wine win test_SetActiveWindow & test_SetForegroundWindow. - co_IntSetForegroundWindow(Window); - } - } -#else ////// else { //ERR("SetWindowPos Set FG Window!\n"); @@ -2238,7 +2220,6 @@ co_WinPosSetWindowPos( else co_IntSetForegroundWindow(Window); // Fixes SW_HIDE issues. Wine win test_SetActiveWindow & test_SetForegroundWindow. } -#endif } if ( !PosChanged &&