Browse Source

Avoid losing updates on partial requests

A request may be for only part of the frame buffer, meaning we cannot
discard all changes just because we've send out an update. There might
still be modified areas remaining that haven't been requested yet.
tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
b64dbf29ae
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      common/rfb/VNCSConnectionST.cxx

+ 4
- 1
common/rfb/VNCSConnectionST.cxx View File

@@ -1056,8 +1056,11 @@ void VNCSConnectionST::writeFramebufferUpdate()

writeRTTPing();

// The request might be for just part of the screen, so we cannot
// just clear the entire update tracker.
updates.subtract(requested);

requested.clear();
updates.clear();
}

out:

Loading…
Cancel
Save