mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fix reverting of focus to owner windows.
svn path=/trunk/; revision=16749
This commit is contained in:
parent
609a60c719
commit
2ce933f05b
1 changed files with 23 additions and 0 deletions
|
@ -114,6 +114,29 @@ WinPosActivateOtherWindow(PWINDOW_OBJECT Window)
|
|||
IntSetFocusMessageQueue(NULL);
|
||||
return;
|
||||
}
|
||||
if ((Window->Style & WS_POPUP) && (Wnd = IntGetOwner(Window)))
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
Old = Wnd;
|
||||
Wnd = IntGetParentObject(Wnd);
|
||||
if(IntIsDesktopWindow(Wnd))
|
||||
{
|
||||
IntReleaseWindowObject(Wnd);
|
||||
Wnd = Old;
|
||||
break;
|
||||
}
|
||||
IntReleaseWindowObject(Old);
|
||||
}
|
||||
|
||||
if (IntSetForegroundWindow(Wnd))
|
||||
{
|
||||
IntReleaseWindowObject(Wnd);
|
||||
return;
|
||||
}
|
||||
|
||||
IntReleaseWindowObject(Wnd);
|
||||
}
|
||||
Wnd = Window;
|
||||
for(;;)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue