aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-11-08 12:44:10 +0000
committerPierre Ossman <ossman@cendio.se>2011-11-08 12:44:10 +0000
commitbbf955ebd77320fb7f95efc3ac140feced109ed8 (patch)
tree6fe96cab7fa2e0d52689db4c58ce386c0f4183dc /win
parent5bc20a699359dfba501880bc776f8fd3c8e5b889 (diff)
downloadtigervnc-bbf955ebd77320fb7f95efc3ac140feced109ed8.tar.gz
tigervnc-bbf955ebd77320fb7f95efc3ac140feced109ed8.zip
Reimplement the deferred update handling, this time in a more robust and
well-behaved manner. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4784 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'win')
-rw-r--r--win/rfb_win32/SDisplay.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/win/rfb_win32/SDisplay.cxx b/win/rfb_win32/SDisplay.cxx
index 05ddce34..583b4aba 100644
--- a/win/rfb_win32/SDisplay.cxx
+++ b/win/rfb_win32/SDisplay.cxx
@@ -378,8 +378,6 @@ SDisplay::processEvent(HANDLE event) {
// - Only process updates if the server is ready
if (server) {
- bool try_update = false;
-
// - Check that the SDesktop doesn't need restarting
if (isRestartRequired()) {
restartCore();
@@ -411,16 +409,12 @@ SDisplay::processEvent(HANDLE event) {
// NB: First translate from Screen coordinates to Desktop
Point desktopPos = info.position.translate(screenRect.tl.negate());
server->setCursorPos(desktopPos);
- try_update = true;
old_cursor = info;
}
// Flush any changes to the server
- try_update = flushChangeTracker() || try_update;
- if (try_update) {
- server->tryUpdate();
- }
+ flushChangeTracker();
}
return;
}