Fixing regression on Windows Ce. b=259816. r=ere. WINCE only.

This commit is contained in:
dougt%meer.net 2006-06-04 16:08:50 +00:00
parent b7ffba23d1
commit 027444ff90

View File

@ -1710,9 +1710,11 @@ NS_METHOD nsWindow::Show(PRBool bState)
break;
default :
mode = SW_SHOWNORMAL;
#ifndef WINCE
// Don't take focus if the active window is not one of ours (e.g. bug 259816)
if (!GetNSWindowPtr(::GetForegroundWindow()))
mode = SW_SHOWNOACTIVATE;
#endif
}
::ShowWindow(mWnd, mode);
if (mode == SW_SHOWNOACTIVATE)