зеркало из https://github.com/mozilla/pjs.git
r=pedemonte, sr=blizzard OS/2 only - don't add the hidden window to the task list
This commit is contained in:
Родитель
e2c2ccf2be
Коммит
b6a6cd1329
|
@ -44,6 +44,7 @@ extern PRBool gRollupConsumeRollupEvent;
|
|||
extern PRBool gJustGotDeactivate;
|
||||
extern HWND gHwndBeingDestroyed;
|
||||
|
||||
BOOL nsFrameWindow::fHiddenWindowCreated = FALSE;
|
||||
|
||||
nsFrameWindow::nsFrameWindow() : nsWindow()
|
||||
{
|
||||
|
@ -110,6 +111,13 @@ void nsFrameWindow::RealDoCreate( HWND hwndP, nsWindow *aParent,
|
|||
|
||||
fcd.flCreateFlags = GetFCFlags();
|
||||
|
||||
if (!fHiddenWindowCreated) {
|
||||
if ((aRect.x == 0) && (aRect.y == 0) && (aRect.height == 100) && (aRect.width == 100)) {
|
||||
fcd.flCreateFlags &= ~FCF_TASKLIST;
|
||||
fHiddenWindowCreated = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// Assume frames are toplevel. Breaks if anyone tries to do MDI, which
|
||||
// is an extra bonus feature :-)
|
||||
mFrameWnd = WinCreateWindow( HWND_DESKTOP,
|
||||
|
|
|
@ -77,6 +77,7 @@ class nsFrameWindow : public nsWindow
|
|||
|
||||
friend MRESULT EXPENTRY fnwpFrame( HWND, ULONG, MPARAM, MPARAM);
|
||||
virtual ULONG WindowStyle();
|
||||
static BOOL fHiddenWindowCreated;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче