From dc738ac7545585b12e904f8ebc90327acbc51ddf Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 20 Jun 2018 15:33:22 +0200 Subject: [PATCH] Don't update screen layout directly on incoming client request It needs to be validated and take effect in the server first. --- common/rfb/SMsgHandler.cxx | 7 ------- common/rfb/SMsgHandler.h | 4 ++-- 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); -- 2.39.5