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
This commit is contained in:
Stefano Ceccherini
2005-06-11 15:08:00 +00:00
parent 56efd1ace8
commit 9b7978ffe6
+2 -5
View File
@@ -401,7 +401,7 @@ BWindow::Sync() const
// ToDo: why with reply?
int32 code;
if (fLink->FlushWithReply(code) == B_OK)
fLink->FlushWithReply(code);
const_cast<BWindow*>(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;