Don't update screen layout directly on incoming client request
It needs to be validated and take effect in the server first.
diff --git a/common/rfb/SMsgHandler.cxx b/common/rfb/SMsgHandler.cxx
index be88433..f952ec2 100644
--- a/common/rfb/SMsgHandler.cxx
+++ b/common/rfb/SMsgHandler.cxx
@@ -83,10 +83,3 @@
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 d654801..8548d91 100644
--- a/common/rfb/SMsgHandler.h
+++ b/common/rfb/SMsgHandler.h
@@ -40,8 +40,8 @@
// 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);