From 88a4f0e67725d6bdf16e7eec2700aa3c5a9165aa Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 10 Mar 2011 10:14:32 +0000 Subject: [PATCH] Oops. Need to make sure requestUpdate is set before calling requestNewUpdate(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_1@4351 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/CConn.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx index d9966ee0..3381ad5c 100644 --- a/win/vncviewer/CConn.cxx +++ b/win/vncviewer/CConn.cxx @@ -519,7 +519,7 @@ CConn::showOptionsDialog() { void CConn::framebufferUpdateStart() { if (!formatChange) { - pendingUpdate = true; + requestUpdate = pendingUpdate = true; requestNewUpdate(); } else pendingUpdate = false; @@ -576,6 +576,9 @@ CConn::framebufferUpdateEnd() { firstUpdate = false; } + // Always request the next update + requestUpdate = true; + // A format change prevented us from sending this before the update, // so make sure to send it now. if (formatChange && !pendingUpdate) @@ -584,9 +587,6 @@ CConn::framebufferUpdateEnd() { if (options.autoSelect) autoSelectFormatAndEncoding(); - // Always request the next update - requestUpdate = true; - // Check that at least part of the window has changed if (!GetUpdateRect(window->getHandle(), 0, FALSE)) { if (!(GetWindowLong(window->getHandle(), GWL_STYLE) & WS_MINIMIZE)) -- 2.39.5