summaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index 93f947cf..dc6c7096 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -507,6 +507,22 @@ void VNCServerST::checkUpdate()
comparer->clear();
}
+void VNCServerST::checkVideoUpdate()
+{
+ const Rect &videoRect = comparer->getVideoArea();
+ Region videoRegion(videoRect);
+
+ if (!videoRegion.is_empty()) {
+ pb->grabRegion(videoRegion);
+
+ std::list<VNCSConnectionST*>::iterator ci, ci_next;
+ for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {
+ ci_next = ci; ci_next++;
+ (*ci)->set_video_area(videoRect);
+ }
+ }
+}
+
void VNCServerST::getConnInfo(ListConnInfo * listConn)
{
listConn->Clear();