зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cd31b6f2df
Коммит
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 );
|
||||
|
|
Загрузка…
Ссылка в новой задаче