This fixes bug #851 - GLTeapot unlocks the window before indirectly calling

BWindow::UpdateIfNeeded(); BPopUpMenu::Go() should be independent of this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18946 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-09-26 21:06:20 +00:00
parent 00f6fab931
commit cc347633b9
1 changed files with 4 additions and 0 deletions

View File

@ -1576,6 +1576,9 @@ BWindow::UpdateIfNeeded()
if (((const BMessageQueue *)MessageQueue())->IsLocked())
return;
if (!Lock())
return;
// make sure all requests that would cause an update have
// arrived at the server
Sync();
@ -1606,6 +1609,7 @@ BWindow::UpdateIfNeeded()
}
queue->Unlock();
Unlock();
}