ScreenSaver: Revert the controversial parts of hrev46012

ScreenSaver once again locks up due to the bug described in #4260
awaiting a systemic fix.
This commit is contained in:
John Scipione 2013-09-26 18:49:50 -04:00
parent 6c7caf44df
commit 91de051305

View File

@ -182,16 +182,14 @@ ScreenSaverRunner::_Run()
{
static const uint32 kInitialTickRate = 50000;
status_t lockStatus = fWindow->LockWithTimeout(kInitialTickRate);
if (lockStatus == B_OK) {
if (fWindow->Lock()) {
fView->SetViewColor(0, 0, 0);
fView->SetLowColor(0, 0, 0);
if (fSaver != NULL)
fHasStarted = fSaver->StartSaver(fView, fPreview) == B_OK;
fWindow->Unlock();
} else
return lockStatus;
}
// TODO: This code is getting awfully complicated and should
// probably be refactored.