* Do not update the internal window state in case sending the message failed.
* This is not perfect, but it makes Tracker catch up and redraw when the next event is due. This improves the situation in bug #2212. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25708 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1839,7 +1839,12 @@ Window::_SendUpdateMessage()
|
||||
return;
|
||||
|
||||
BMessage message(_UPDATE_);
|
||||
ServerWindow()->SendMessageToClient(&message);
|
||||
if (ServerWindow()->SendMessageToClient(&message) != B_OK) {
|
||||
// If sending the message failed, we'll just keep adding to the dirty
|
||||
// region until sending was successful.
|
||||
// TODO: we might want to automatically resend this message in this case
|
||||
return;
|
||||
}
|
||||
|
||||
fUpdateRequested = true;
|
||||
fEffectiveDrawingRegionValid = false;
|
||||
|
||||
Reference in New Issue
Block a user