зеркало из https://github.com/mozilla/pjs.git
for carbon, use the simple defproc to avoid window borders by the OS. also, remove invisible windows from the OS window lists (hidden window is one example). bugs 76990 and 102525. r=sdagley/sr=sfraser.
This commit is contained in:
Родитель
0aeede6732
Коммит
ac458d3081
|
@ -409,7 +409,11 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
|||
goAwayFlag = false;
|
||||
hOffset = 0;
|
||||
vOffset = 0;
|
||||
#if TARGET_CARBON
|
||||
wDefProcID = kWindowSimpleProc;
|
||||
#else
|
||||
wDefProcID = plainDBox;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case eWindowType_child:
|
||||
|
@ -591,7 +595,10 @@ nsresult nsMacWindow::StandardCreate(nsIWidget *aParent,
|
|||
|
||||
// Setup the live window resizing
|
||||
if ( mWindowType == eWindowType_toplevel || mWindowType == eWindowType_invisible ) {
|
||||
::ChangeWindowAttributes ( mWindowPtr, kWindowLiveResizeAttribute, kWindowNoAttributes );
|
||||
WindowAttributes removeAttributes = kWindowNoAttributes;
|
||||
if ( mWindowType == eWindowType_invisible )
|
||||
removeAttributes |= kWindowInWindowMenuAttribute;
|
||||
::ChangeWindowAttributes ( mWindowPtr, kWindowLiveResizeAttribute, removeAttributes );
|
||||
|
||||
EventTypeSpec windEventList[] = { {kEventClassWindow, kEventWindowBoundsChanged},
|
||||
{kEventClassWindow, kEventWindowConstrain} };
|
||||
|
|
Загрузка…
Ссылка в новой задаче