diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-10-26 15:54:00 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-11-09 17:25:23 +0100 |
commit | 65e08fdc9d783a863b0d0b0acb62c9f3a6b49d63 (patch) | |
tree | c4847806112074bbbd06eb7b24057e35950b7ecc /common/rfb/VNCSConnectionST.h | |
parent | 10688efcf759f24e83814f9e12a1275296b07a4c (diff) | |
download | tigervnc-65e08fdc9d783a863b0d0b0acb62c9f3a6b49d63.tar.gz tigervnc-65e08fdc9d783a863b0d0b0acb62c9f3a6b49d63.zip |
Change idle timeout to timer
Get this timeout in to the timer system as well to make things
simpler and more robust.
Diffstat (limited to 'common/rfb/VNCSConnectionST.h')
-rw-r--r-- | common/rfb/VNCSConnectionST.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/common/rfb/VNCSConnectionST.h b/common/rfb/VNCSConnectionST.h index 1b7d59ac..c992d145 100644 --- a/common/rfb/VNCSConnectionST.h +++ b/common/rfb/VNCSConnectionST.h @@ -77,11 +77,6 @@ namespace rfb { void setLEDStateOrClose(unsigned int state); void approveConnectionOrClose(bool accept, const char* reason); - // checkIdleTimeout() returns the number of milliseconds left until the - // idle timeout expires. If it has expired, the connection is closed and - // zero is returned. Zero is also returned if there is no idle timeout. - int checkIdleTimeout(); - // The following methods never throw exceptions // getComparerState() returns if this client would like the framebuffer @@ -182,7 +177,8 @@ namespace rfb { std::map<rdr::U32, rdr::U32> pressedKeys; - time_t lastEventTime; + Timer idleTimer; + time_t pointerEventTime; Point pointerEventPos; bool clientHasCursor; |