Skip to content

Commit

Permalink
Break long lines in new pointerEvent logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samhed committed Jan 26, 2024
1 parent 238028d commit 6edbe66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common/rfb/VNCServerST.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6edbe66

Please sign in to comment.