From e085ee2cfa1cfc83b2f1db4cdc3b6b14ce2d01a8 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Thu, 24 Feb 2000 21:32:47 +0000 Subject: [PATCH] oops. har. that last patch just disabled the timing, which reverted bug 28473. This one was the intended. git-svn-id: svn://10.0.0.236/trunk@61609 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsWebShellWindow.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp index 426af43108f..c62f8dc88a0 100644 --- a/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp +++ b/mozilla/xpfe/appshell/src/nsWebShellWindow.cpp @@ -441,8 +441,7 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent) win = NS_REINTERPRET_CAST(nsWebShellWindow *, data); // persist position, but not immediately, in case this OS is firing // repeated move events as the user drags the window -// win->SetPersistenceTimer(); - win->StoreBoundsToXUL(PR_TRUE, PR_FALSE); + win->SetPersistenceTimer(PR_FALSE, PR_TRUE); break; } case NS_SIZE: { @@ -456,8 +455,7 @@ nsWebShellWindow::HandleEvent(nsGUIEvent *aEvent) win = NS_REINTERPRET_CAST(nsWebShellWindow *, data); // persist size, but not immediately, in case this OS is firing // repeated size events as the user drags the sizing handle - //win->SetPersistenceTimer(); - win->StoreBoundsToXUL(PR_FALSE, PR_TRUE); + win->SetPersistenceTimer(PR_TRUE, PR_FALSE); result = nsEventStatus_eConsumeNoDefault; break; } @@ -1250,7 +1248,7 @@ nsWebShellWindow::FirePersistenceTimer(nsITimer *aTimer, void *aClosure) PR_Lock(win->mSPTimerLock); win->mSPTimer = nsnull; PR_Unlock(win->mSPTimerLock); - win->StoreBoundsToXUL(win->mSPTimerSize, win->mSPTimerPosition); + win->StoreBoundsToXUL(win->mSPTimerPosition, win->mSPTimerSize); }