diff options
author | Samuel Mannehed <samuel@cendio.se> | 2024-01-26 13:19:31 +0100 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2024-01-26 13:19:31 +0100 |
commit | 6edbe662188b28cb370c3e56b0c0a3e5e79a4f58 (patch) | |
tree | 6b94f588a4c5b5a73e82052b19e5741b250236aa | |
parent | 238028d97ac3a9ab660b247cf1d9881ff40b6168 (diff) | |
download | tigervnc-6edbe662188b28cb370c3e56b0c0a3e5e79a4f58.tar.gz tigervnc-6edbe662188b28cb370c3e56b0c0a3e5e79a4f58.zip |
Break long lines in new pointerEvent logic
-rw-r--r-- | common/rfb/VNCServerST.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx index bd29f243..50efbb3c 100644 --- a/common/rfb/VNCServerST.cxx +++ b/common/rfb/VNCServerST.cxx @@ -490,9 +490,10 @@ void VNCServerST::pointerEvent(VNCSConnectionST* client, idleTimer.start(secsToMillis(rfb::Server::maxIdleTime)); // Let one client own the cursor whilst buttons are pressed in order - // to provide a bit more sane user experience. But limit the time to prevent - // locking out all others when e.g. the network is down. - if ((pointerClient != NULL) && (pointerClient != client) && ((now - pointerClientTime) < 3)) + // to provide a bit more sane user experience. But limit the time to + // prevent locking out all others when e.g. the network is down. + if ((pointerClient != NULL) && (pointerClient != client) && + ((now - pointerClientTime) < 3)) return; pointerClientTime = now; |