diff options
-rw-r--r-- | common/rfb/VNCServerST.cxx | 4 | ||||
-rw-r--r-- | common/rfb/VNCServerST.h | 3 | ||||
-rw-r--r-- | unix/x0vncserver/x0vncserver.cxx | 5 |
3 files changed, 10 insertions, 2 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index 066feb90..e9544780 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -574,3 +574,7 @@ void VNCServerST::unsetVideoRectangle() } } +void VNCServerST::setDefaultVideoRect(const Rect& r) +{ + m_defaultVideoRect = r; +} diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h index 5277f550..1dd7afd1 100644 --- a/common/rfb/VNCServerST.h +++ b/common/rfb/VNCServerST.h @@ -205,6 +205,8 @@ namespace rfb { void setVideoRectangle(const Rect& r); void unsetVideoRectangle(); + void setDefaultVideoRect(const Rect& r); + protected: friend class VNCSConnectionST; @@ -256,6 +258,7 @@ namespace rfb { bool m_videoSelectionEnabled; Rect m_videoRect; + Rect m_defaultVideoRect; }; }; diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx index a6bae95b..d21e71b1 100644 --- a/unix/x0vncserver/x0vncserver.cxx +++ b/unix/x0vncserver/x0vncserver.cxx @@ -186,8 +186,9 @@ public: pb = new XPixelBuffer(dpy, factory, geometry->getRect(), this); vlog.info("Allocated %s", pb->getImage()->classDesc()); - server = vs; + server = (VNCServerST *)vs; server->setPixelBuffer(pb); + server->setDefaultVideoRect(geometry->getVideoRect()); running = true; } @@ -259,7 +260,7 @@ protected: Display* dpy; Geometry* geometry; XPixelBuffer* pb; - VNCServer* server; + VNCServerST* server; int oldButtonMask; bool haveXtest; int maxButtons; |