mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
r=pedemonte, sr=blizzard OS/2 only - don't add the hidden window to the task list
This commit is contained in:
parent
65a183cd7a
commit
fca5228607
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user