summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--TODO3
-rw-r--r--main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index f17d3f0..a78d83e 100644
--- a/TODO
+++ b/TODO
@@ -6,7 +6,8 @@ documentation
perhaps the option (or just hint) not to mark very tiny regions as
modified, because that is inefficient for the encodings.
optionally dont draw rich cursors as xcursors
-cursor smears on IRIX with pthreads, then has bus error.
+cursor smears on IRIX with pthreads, then has bus error. has to be a mutex
+ problem in cursor routines.
later:
------
diff --git a/main.c b/main.c
index 7362e4d..2b6cc25 100644
--- a/main.c
+++ b/main.c
@@ -145,10 +145,10 @@ clientOutput(void *data)
updateRegion = sraRgnCreateRgn(cl->modifiedRegion);
sraRgnAnd(updateRegion,cl->requestedRegion);
sraRgnSubtract(cl->modifiedRegion,updateRegion);
- UNLOCK(cl->updateMutex);
/* Now actually send the update. */
rfbSendFramebufferUpdate(cl, updateRegion);
+ UNLOCK(cl->updateMutex);
sraRgnDestroy(updateRegion);
}