mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[Win32k]
- Fix window activation bug. Patch by Giannis Adamopoulos. See CORE-6889. svn path=/trunk/; revision=58528
This commit is contained in:
parent
582d211b8f
commit
abb74bd965
1 changed files with 8 additions and 4 deletions
|
@ -2218,10 +2218,14 @@ co_WinPosShowWindow(PWND Wnd, INT Cmd)
|
|||
|
||||
if ((Cmd == SW_HIDE) || (Cmd == SW_MINIMIZE))
|
||||
{
|
||||
if ( ( Wnd->spwndParent == UserGetDesktopWindow() && !ActivateOtherWindowMin(Wnd) ) ||
|
||||
// and Rule #1.
|
||||
( Wnd == pti->MessageQueue->spwndActive && pti->MessageQueue == IntGetFocusMessageQueue() ) )
|
||||
if ( Wnd == pti->MessageQueue->spwndActive && pti->MessageQueue == IntGetFocusMessageQueue() )
|
||||
{
|
||||
if ( Wnd->spwndParent == UserGetDesktopWindow())
|
||||
{
|
||||
if(!ActivateOtherWindowMin(Wnd))
|
||||
co_WinPosActivateOtherWindow(Wnd);
|
||||
}
|
||||
else
|
||||
co_WinPosActivateOtherWindow(Wnd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue