From cc347633b95b052ad3b27d174904f61429ccdf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 26 Sep 2006 21:06:20 +0000 Subject: [PATCH] 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 --- src/kits/interface/Window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 917ceaa685..c52a32f3f4 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -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(); }