aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-12-18 15:50:00 +0100
committerPierre Ossman <ossman@cendio.se>2025-02-05 14:01:09 +0100
commit655da47027a8f91ec39c1d107406f346900dd694 (patch)
treea52aea46c2f00dc8a964b072d74cbdef1a1d4314 /vncviewer
parentf336aca30e56490f8ce925a5b0a4d31c8fe98d1c (diff)
downloadtigervnc-655da47027a8f91ec39c1d107406f346900dd694.tar.gz
tigervnc-655da47027a8f91ec39c1d107406f346900dd694.zip
Remove superfluous resizeFramebuffer() calls
These are not needed since the cleanup in 6ea58ba. At the same time, move the error logging for a failed SetDesktopSize to the base CConnection class as it is a generic thing.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/CConn.cxx23
-rw-r--r--vncviewer/CConn.h5
2 files changed, 0 insertions, 28 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index f8e80429..3a5c161f 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -35,7 +35,6 @@
#include <rfb/Hostname.h>
#include <rfb/LogWriter.h>
#include <rfb/Security.h>
-#include <rfb/screenTypes.h>
#include <rfb/fenceTypes.h>
#include <rfb/Timer.h>
#include <network/TcpSocket.h>
@@ -317,28 +316,6 @@ void CConn::initDone()
setPreferredEncoding(encNum);
}
-// setDesktopSize() is called when the desktop size changes (including when
-// it is set initially).
-void CConn::setDesktopSize(int w, int h)
-{
- CConnection::setDesktopSize(w,h);
- resizeFramebuffer();
-}
-
-// setExtendedDesktopSize() is a more advanced version of setDesktopSize()
-void CConn::setExtendedDesktopSize(unsigned reason, unsigned result,
- int w, int h, const rfb::ScreenSet& layout)
-{
- CConnection::setExtendedDesktopSize(reason, result, w, h, layout);
-
- if ((reason == reasonClient) && (result != resultSuccess)) {
- vlog.error(_("SetDesktopSize failed: %d"), result);
- return;
- }
-
- resizeFramebuffer();
-}
-
// setName() is called when the desktop name changes
void CConn::setName(const char* name)
{
diff --git a/vncviewer/CConn.h b/vncviewer/CConn.h
index a7b9afda..5c470508 100644
--- a/vncviewer/CConn.h
+++ b/vncviewer/CConn.h
@@ -57,11 +57,6 @@ public:
void initDone() override;
- void setDesktopSize(int w, int h) override;
- void setExtendedDesktopSize(unsigned reason, unsigned result,
- int w, int h,
- const rfb::ScreenSet& layout) override;
-
void setName(const char* name) override;
void setColourMapEntries(int firstColour, int nColours,