mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
init the window proc id to something valid so we don't get bit if it's not set (such as the hidden window). r=sdagely/sr=blake/a=asa. bug# 70355
This commit is contained in:
parent
cd31b6f2df
commit
4cd9c9a299
@ -364,7 +364,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
||||
} else
|
||||
mWindowType = (mIsDialog ? eWindowType_dialog : eWindowType_toplevel);
|
||||
|
||||
short wDefProcID;
|
||||
short wDefProcID = kWindowDocumentProc;
|
||||
Boolean goAwayFlag;
|
||||
short hOffset;
|
||||
short vOffset;
|
||||
@ -534,7 +534,7 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
||||
::SetWindowClass(mWindowPtr, kModalWindowClass);
|
||||
|
||||
// Setup the live window resizing
|
||||
if ( mWindowType == eWindowType_toplevel ) {
|
||||
if ( mWindowType == eWindowType_toplevel || mWindowType == eWindowType_invisible ) {
|
||||
const UInt32 kWindowLiveResizeAttribute = (1L << 28); // BAD!!! our headers don't yet support this
|
||||
|
||||
::ChangeWindowAttributes ( mWindowPtr, kWindowLiveResizeAttribute, kWindowNoAttributes );
|
||||
|
Loading…
Reference in New Issue
Block a user