summaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-31 17:08:59 +0100
committerPierre Ossman <ossman@cendio.se>2018-11-01 16:11:42 +0100
commitdd45b4490100f70e21000c5181540c224e0f3c41 (patch)
tree440df3c66f396e20c1dc40989d1ee40211252d26 /vncviewer
parent2affd7753274ddf3b93505f0ae26af3c45aa3fec (diff)
downloadtigervnc-dd45b4490100f70e21000c5181540c224e0f3c41.tar.gz
tigervnc-dd45b4490100f70e21000c5181540c224e0f3c41.zip
Let CMsgHandler::serverInit() handle initial set up
Avoid using the callbacks used for runtime changes for the initial setup. They weren't really useful anyway as you could not allocate a framebuffer without also knowing the pixel format. So make things more clear by letting serverInit() get the initial settings.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/CConn.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 23257ee6..3e156ad6 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -363,8 +363,7 @@ void CConn::setExtendedDesktopSize(unsigned reason, unsigned result,
void CConn::setName(const char* name)
{
CConnection::setName(name);
- if (desktop)
- desktop->setName(name);
+ desktop->setName(name);
}
// framebufferUpdateStart() is called at the beginning of an update.
@@ -495,9 +494,6 @@ void CConn::setLEDState(unsigned int state)
void CConn::resizeFramebuffer()
{
- if (!desktop)
- return;
-
if (continuousUpdates)
writer()->writeEnableContinuousUpdates(true, 0, 0,
server.width(),