mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 17:20:54 +00:00
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:
parent
2c5e158506
commit
44ffd0da4a
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user