mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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);
|
IntSetFocusMessageQueue(NULL);
|
||||||
return;
|
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;
|
Wnd = Window;
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue