oops. har. that last patch just disabled the timing, which reverted bug 28473. This one was the intended.

This commit is contained in:
danm%netscape.com 2000-02-24 21:32:47 +00:00
Родитель 298efc29cb
Коммит 65a83224fa
1 изменённых файлов: 3 добавлений и 5 удалений

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

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