summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authordscho <dscho>2002-10-29 16:04:24 +0000
committerdscho <dscho>2002-10-29 16:04:24 +0000
commitd60fda117b1d72d12984a07a4444d36a69da639e (patch)
treea13e8c1f9f63e5a7c10541729dde603b4425b101 /main.c
parent19c7fc0217e2087af2173974689b9b0f892a18d3 (diff)
downloadlibtdevnc-d60fda117b1d72d12984a07a4444d36a69da639e.tar.gz
libtdevnc-d60fda117b1d72d12984a07a4444d36a69da639e.zip
fixed severe bug with sending fbupdates
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 0f4bf7d..ab4c149 100644
--- a/main.c
+++ b/main.c
@@ -766,7 +766,8 @@ rfbProcessEvents(rfbScreenInfoPtr rfbScreen,long usec)
i = rfbGetClientIterator(rfbScreen);
cl=rfbClientIteratorNext(i);
while(cl) {
- if(cl->sock>=0 && (!cl->onHold) && FB_UPDATE_PENDING(cl)) {
+ if (cl->sock >= 0 && !cl->onHold && FB_UPDATE_PENDING(cl) &&
+ !sraRgnEmpty(cl->requestedRegion)) {
if(cl->screen->rfbDeferUpdateTime == 0) {
rfbSendFramebufferUpdate(cl,cl->modifiedRegion);
} else if(cl->startDeferring.tv_usec == 0) {