aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-06-20 15:33:22 +0200
committerPierre Ossman <ossman@cendio.se>2018-11-01 16:11:42 +0100
commitdc738ac7545585b12e904f8ebc90327acbc51ddf (patch)
treec6fa7bd95be5cafa13ec0b37407522b390f182b8
parent5588f4f4820bb822cd221e33a8b4aae4cfeef073 (diff)
downloadtigervnc-dc738ac7545585b12e904f8ebc90327acbc51ddf.tar.gz
tigervnc-dc738ac7545585b12e904f8ebc90327acbc51ddf.zip
Don't update screen layout directly on incoming client request
It needs to be validated and take effect in the server first.
-rw-r--r--common/rfb/SMsgHandler.cxx7
-rw-r--r--common/rfb/SMsgHandler.h4
2 files changed, 2 insertions, 9 deletions
diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx
index be884333..f952ec2b 100644
--- a/common/rfb/SMsgHandler.cxx
+++ b/common/rfb/SMsgHandler.cxx
@@ -83,10 +83,3 @@ void SMsgHandler::supportsLEDState()
void SMsgHandler::supportsQEMUKeyEvent()
{
}
-
-void SMsgHandler::setDesktopSize(int fb_width, int fb_height,
- const ScreenSet& layout)
-{
- client.setDimensions(fb_width, fb_height, layout);
-}
-
diff --git a/common/rfb/SMsgHandler.h b/common/rfb/SMsgHandler.h
index d6548013..8548d911 100644
--- a/common/rfb/SMsgHandler.h
+++ b/common/rfb/SMsgHandler.h
@@ -40,8 +40,8 @@ namespace rfb {
// The following methods are called as corresponding messages are read. A
// derived class should override these methods as desired. Note that for
- // the setPixelFormat(), setEncodings() and setDesktopSize() methods, a
- // derived class must call on to SMsgHandler's methods.
+ // the setPixelFormat(), and setEncodings() methods, a derived class must
+ // call on to SMsgHandler's methods.
virtual void clientInit(bool shared);