summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authordscho <dscho>2005-12-19 19:45:51 +0000
committerdscho <dscho>2005-12-19 19:45:51 +0000
commit1c26789eff7b22518fcfb942e3d5a36758fdca19 (patch)
tree0891f60a4ca30fe031ae6c7090251c1d750e970a /rfb
parent1b81e342cbed1b620dec7065b1c06b47df0b6d92 (diff)
downloadlibvncserver-1c26789eff7b22518fcfb942e3d5a36758fdca19.zip
libvncserver-1c26789eff7b22518fcfb942e3d5a36758fdca19.tar.gz
introduce -deferptrupdate (thanks Dave)
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index caec018..c2abb0e 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -62,8 +62,10 @@ extern "C"
#define TINI_COND(cond) (rfbLog("%s:%d TINI_COND(%s)\n",__FILE__,__LINE__,#cond), pthread_cond_destroy(&(cond)))
#define IF_PTHREADS(x) x
#else
+#if !NONETWORK
#define LOCK(mutex) pthread_mutex_lock(&(mutex));
#define UNLOCK(mutex) pthread_mutex_unlock(&(mutex));
+#endif
#define MUTEX(mutex) pthread_mutex_t (mutex)
#define INIT_MUTEX(mutex) pthread_mutex_init(&(mutex),NULL)
#define TINI_MUTEX(mutex) pthread_mutex_destroy(&(mutex))
@@ -307,6 +309,7 @@ typedef struct _rfbScreenInfo
int progressiveSliceHeight;
in_addr_t listenInterface;
+ int deferPtrUpdateTime;
} rfbScreenInfo, *rfbScreenInfoPtr;
@@ -418,6 +421,10 @@ typedef struct _rfbClientRec {
into a single update. */
struct timeval startDeferring;
+ struct timeval startPtrDeferring;
+ int lastPtrX;
+ int lastPtrY;
+ int lastPtrButtons;
/* translateFn points to the translation function which is used to copy
and translate a rectangle from the framebuffer to an output buffer. */
OpenPOWER on IntegriCloud