Fix handling of bad update requests
We computed a safe area if a client gave us a bogus one, but we didn't actually use it. Fix this properly and make sure we don't pass on bad coordinates further.
This commit is contained in:
committed by
Lauri Kasanen
parent
f54dc7829a
commit
189f503b98
@@ -874,7 +874,7 @@ void VNCSConnectionST::framebufferUpdateRequest(const Rect& r,bool incremental)
|
||||
|
||||
// Just update the requested region.
|
||||
// Framebuffer update will be sent a bit later, see processMessages().
|
||||
Region reqRgn(r);
|
||||
Region reqRgn(safeRect);
|
||||
if (!incremental || !continuousUpdates)
|
||||
requested.assign_union(reqRgn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user