r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - Code from aaronr - workaround crash using XCenter/XWorkplace
This commit is contained in:
mkaply%us.ibm.com 2001-08-28 13:18:24 +00:00
Родитель 736f7cf167
Коммит 640ceb8e7b
1 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -44,6 +44,7 @@ extern nsIWidget * gRollupWidget;
extern PRBool gRollupConsumeRollupEvent;
extern PRBool gJustGotDeactivate;
extern HWND gHwndBeingDestroyed;
nsFrameWindow::nsFrameWindow() : nsCanvas()
@ -393,7 +394,18 @@ MRESULT nsFrameWindow::FrameMessage( ULONG msg, MPARAM mp1, MPARAM mp2)
case WM_ACTIVATE:
if( !mp1)
gJustGotDeactivate = PR_TRUE;
{
/* we don't want to go through all of this deactivation stuff if
* the window is just going away anyhow. Causes problems to process
* the deactivation event if we've hit some destructors or done
* some destroy work. Especially w.r.t the focus controller
*/
if( (hwndFrame != gHwndBeingDestroyed) ||
(!WinIsChild( hwndFrame, gHwndBeingDestroyed )) )
{
gJustGotDeactivate = PR_TRUE;
}
}
break;
}