aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CConnection.cxx
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 /common/rfb/CConnection.cxx
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 'common/rfb/CConnection.cxx')
-rw-r--r--common/rfb/CConnection.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 9a9593e2..1c949009 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -43,8 +43,8 @@ static LogWriter vlog("CConnection");
CConnection::CConnection()
: csecurity(0),
- supportsLocalCursor(false), supportsDesktopResize(false),
- supportsLEDState(false),
+ supportsLocalCursor(false), supportsCursorPosition(false),
+ supportsDesktopResize(false), supportsLEDState(false),
is(0), os(0), reader_(0), writer_(0),
shared(false),
state_(RFBSTATE_UNINITIALISED),
@@ -805,6 +805,9 @@ void CConnection::updateEncodings()
encodings.push_back(pseudoEncodingCursor);
encodings.push_back(pseudoEncodingXCursor);
}
+ if (supportsCursorPosition) {
+ encodings.push_back(pseudoEncodingVMwareCursorPosition);
+ }
if (supportsDesktopResize) {
encodings.push_back(pseudoEncodingDesktopSize);
encodings.push_back(pseudoEncodingExtendedDesktopSize);