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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user