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:
parent
00f6fab931
commit
cc347633b9
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user