* 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:
Axel Dörfler
2008-05-29 18:16:07 +00:00
parent c7d757a074
commit 55112db6ea
+6 -1
View File
@@ -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;