From a34d5555495723f71ff2e89533fdb19a4829db57 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 28 May 2009 12:47:51 +0000 Subject: [PATCH] We should only send ExtendedDesktopSize to a client supporting both it and the old DesktopSize. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3816 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/VNCSConnectionST.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 12cfab8c..e286cf31 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -171,10 +171,12 @@ void VNCSConnectionST::pixelBufferChange() cp.height = server->pb->height(); cp.screenLayout = server->screenLayout; if (state() == RFBSTATE_NORMAL) { - if (!writer()->writeSetDesktopSize() && - !writer()->writeExtendedDesktopSize()) { - close("Client does not support desktop resize"); - return; + // We should only send EDS to client asking for both + if (!writer()->writeExtendedDesktopSize()) { + if (!writer()->writeSetDesktopSize()) { + close("Client does not support desktop resize"); + return; + } } } } -- 2.39.5