From 9b7978ffe603eb62b31660d714070f3c9972a29d Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Sat, 11 Jun 2005 15:08:00 +0000 Subject: [PATCH] No need to Lock()/Unlock() as Flush() does it already. Sync() wouldn't have unlocked the window in case FlushWithReply() wouldn't succeed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13061 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index cc3decb8c7..812306a08c 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -401,7 +401,7 @@ BWindow::Sync() const // ToDo: why with reply? int32 code; - if (fLink->FlushWithReply(code) == B_OK) + fLink->FlushWithReply(code); const_cast(this)->Unlock(); } @@ -793,10 +793,7 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target) case B_PULSE: if (fPulseEnabled) { sendPulse(top_view); - if (Lock()) { - Flush(); - Unlock(); - } + Flush(); } break;