aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorlhchavez <lhchavez@lhchavez.com>2021-02-08 07:09:10 -0800
committerlhchavez <lhchavez@lhchavez.com>2021-03-11 05:15:46 -0800
commit51f10f7c83b0e4a6d7427849ad4cbb1cba6ea7c2 (patch)
treebc6f121c25203db907d4ce4cb75b5a11bca26534 /tests
parentcd2a882e53d9a7b65b320832da60c307a13c6745 (diff)
downloadtigervnc-51f10f7c83b0e4a6d7427849ad4cbb1cba6ea7c2.tar.gz
tigervnc-51f10f7c83b0e4a6d7427849ad4cbb1cba6ea7c2.zip
Support the VMware Cursor Position extension on vncviewer
This change makes it possible for re-synchronizing the remote cursor on the vncviewer when in fullscreen mode. This is done by locally moving the cursor position to what the server thinks it should be. Now SDL games should work!
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/decperf.cxx5
-rw-r--r--tests/perf/encperf.cxx5
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/perf/decperf.cxx b/tests/perf/decperf.cxx
index a6c65a22..23f3fe24 100644
--- a/tests/perf/decperf.cxx
+++ b/tests/perf/decperf.cxx
@@ -66,6 +66,7 @@ public:
virtual void initDone();
virtual void setPixelFormat(const rfb::PixelFormat& pf);
virtual void setCursor(int, int, const rfb::Point&, const rdr::U8*);
+ virtual void setCursorPos(const rfb::Point&);
virtual void framebufferUpdateStart();
virtual void framebufferUpdateEnd();
virtual void setColourMapEntries(int, int, rdr::U16*);
@@ -144,6 +145,10 @@ void CConn::setCursor(int, int, const rfb::Point&, const rdr::U8*)
{
}
+void CConn::setCursorPos(const rfb::Point&)
+{
+}
+
void CConn::framebufferUpdateStart()
{
CConnection::framebufferUpdateStart();
diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx
index 9f30cab7..69121ffa 100644
--- a/tests/perf/encperf.cxx
+++ b/tests/perf/encperf.cxx
@@ -95,6 +95,7 @@ public:
virtual void initDone() {};
virtual void resizeFramebuffer();
virtual void setCursor(int, int, const rfb::Point&, const rdr::U8*);
+ virtual void setCursorPos(const rfb::Point&);
virtual void framebufferUpdateStart();
virtual void framebufferUpdateEnd();
virtual bool dataRect(const rfb::Rect&, int);
@@ -216,6 +217,10 @@ void CConn::setCursor(int, int, const rfb::Point&, const rdr::U8*)
{
}
+void CConn::setCursorPos(const rfb::Point&)
+{
+}
+
void CConn::framebufferUpdateStart()
{
CConnection::framebufferUpdateStart();