mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
Fix reverting of focus to owner windows.
svn path=/trunk/; revision=16749
This commit is contained in:
@@ -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(;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user