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:
pinkerton%netscape.com 2001-10-16 21:10:51 +00:00
Родитель 0aeede6732
Коммит ac458d3081
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -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} };