Window position is not persisted (persist="screenX screenY" doesn't work). Patch by Colin Barrett. b=376808 r=josh sr=pinkerton

This commit is contained in:
joshmoz%gmail.com 2007-05-10 23:54:05 +00:00
Родитель 66e009bdb9
Коммит e27a8bd6ab
1 изменённых файлов: 12 добавлений и 0 удалений

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

@ -1178,6 +1178,18 @@ NS_IMETHODIMP nsCocoaWindow::GetAnimatedResize(PRUint16* aAnimation)
gRollupListener->Rollup();
}
- (void)windowDidMove:(NSNotification *)aNotification
{
// Dispatch the move event to Gecko
nsGUIEvent guiEvent(PR_TRUE, NS_MOVE, mGeckoWindow);
nsRect rect;
mGeckoWindow->GetScreenBounds(rect);
guiEvent.refPoint.x = rect.x;
guiEvent.refPoint.y = rect.y;
guiEvent.time = PR_IntervalNow();
nsEventStatus status = nsEventStatus_eIgnore;
mGeckoWindow->DispatchEvent(&guiEvent, status);
}
- (BOOL)windowShouldClose:(id)sender
{