Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/ulalaca-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ulalaca.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ulalaca.cpp b/ulalaca.cpp
index d9800ed..618bf7e 100644
--- a/ulalaca.cpp
+++ b/ulalaca.cpp
@@ -304,6 +304,7 @@ std::unique_ptr<std::vector<XrdpUlalaca::Rect>> XrdpUlalaca::createCopyRects(
}
void XrdpUlalaca::addDirtyRect(Rect &rect) {
+ std::scoped_lock<std::mutex> scopedCommitLock(_commitUpdateLock);
_dirtyRects.push_back(rect);
}
@@ -316,11 +317,6 @@ void XrdpUlalaca::commitUpdate(const uint8_t *image, int32_t width, int32_t heig
server_reset(this, width, height, _bpp);
}
- if ((_frameId - _ackFrameId) > 4) {
- _dirtyRects.clear();
- return;
- }
-
if (_frameId > 0 && _dirtyRects.empty()) {
return;
}