From 6edbe662188b28cb370c3e56b0c0a3e5e79a4f58 Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 26 Jan 2024 13:19:31 +0100 Subject: [PATCH] Break long lines in new pointerEvent logic --- common/rfb/VNCServerST.cxx | 7 ++++--- 1 file 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; -- 2.39.5