aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.cxx
diff options
context:
space:
mode:
authorCarlos Santos <casantos@redhat.com>2023-11-29 18:52:52 -0300
committerCarlos Santos <casantos@redhat.com>2024-04-26 11:28:07 -0300
commit7597f8d42b236c99d175a02cea7e76593e16b886 (patch)
treed421a171c74db5884f0d4b1b9a4dcade52866a51 /common/rfb/VNCServerST.cxx
parentd77e2b01f972ef12b722e3ef9d22efdc241689c3 (diff)
downloadtigervnc-7597f8d42b236c99d175a02cea7e76593e16b886.tar.gz
tigervnc-7597f8d42b236c99d175a02cea7e76593e16b886.zip
vncconfig: add option to force view-only remote client connections
Specifies that the server must ignore all keyboard or mouse events sent by the client. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903 Signed-off-by: Carlos Santos <casantos@redhat.com>
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index edf23a4f..fb421068 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -132,7 +132,7 @@ VNCServerST::~VNCServerST()
// VNCServer methods
-void VNCServerST::addSocket(network::Socket* sock, bool outgoing)
+void VNCServerST::addSocket(network::Socket* sock, bool outgoing, AccessRights accessRights)
{
// - Check the connection isn't black-marked
// *** do this in getSecurity instead?
@@ -163,7 +163,7 @@ void VNCServerST::addSocket(network::Socket* sock, bool outgoing)
connectTimer.start(secsToMillis(rfb::Server::maxConnectionTime));
disconnectTimer.stop();
- VNCSConnectionST* client = new VNCSConnectionST(this, sock, outgoing);
+ VNCSConnectionST* client = new VNCSConnectionST(this, sock, outgoing, accessRights);
clients.push_front(client);
client->init();
}