aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/CConnection.cxx')
-rw-r--r--common/rfb/CConnection.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx
index 2ddfc330..7e9fd310 100644
--- a/common/rfb/CConnection.cxx
+++ b/common/rfb/CConnection.cxx
@@ -64,6 +64,8 @@ void CConnection::setStreams(rdr::InStream* is_, rdr::OutStream* os_)
void CConnection::setFramebuffer(ModifiablePixelBuffer* fb)
{
+ decoder.flush();
+
if ((framebuffer != NULL) && (fb != NULL)) {
Rect rect;
@@ -303,6 +305,8 @@ void CConnection::securityCompleted()
void CConnection::setDesktopSize(int w, int h)
{
+ decoder.flush();
+
CMsgHandler::setDesktopSize(w,h);
}
@@ -311,6 +315,8 @@ void CConnection::setExtendedDesktopSize(unsigned reason,
int w, int h,
const ScreenSet& layout)
{
+ decoder.flush();
+
CMsgHandler::setExtendedDesktopSize(reason, result, w, h, layout);
}
@@ -321,6 +327,8 @@ void CConnection::framebufferUpdateStart()
void CConnection::framebufferUpdateEnd()
{
+ decoder.flush();
+
CMsgHandler::framebufferUpdateEnd();
}