New polling algorithm has been implemented. Video detection is not included in this version though.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2342 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/x0vncserver/PollingManager.h b/unix/x0vncserver/PollingManager.h
index 58c16f9..a67901b 100644
--- a/unix/x0vncserver/PollingManager.h
+++ b/unix/x0vncserver/PollingManager.h
@@ -59,6 +59,7 @@
   // Implementations of different polling algorithms.
   // Return value of true reports that some changes were detected.
   //
+  bool poll_New();
   bool poll_DetectVideo();
   bool poll_SkipCycles();
   bool poll_Traditional();
@@ -90,6 +91,12 @@
     m_image->get(DefaultRootWindow(m_dpy), m_offsetLeft, m_offsetTop);
   }
 
+  inline void getScreenRect(const Rect& r) {
+    m_image->get(DefaultRootWindow(m_dpy),
+                 m_offsetLeft + r.tl.x, m_offsetTop + r.tl.y,
+                 r.width(), r.height(), r.tl.x, r.tl.y);
+  }
+
   inline void getRow(int y) {
     m_rowImage->get(DefaultRootWindow(m_dpy), m_offsetLeft, m_offsetTop + y);
   }