Browse Source

Break long lines in new pointerEvent logic

pull/1722/head
Samuel Mannehed 3 months ago
parent
commit
6edbe66218
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      common/rfb/VNCServerST.cxx

+ 4
- 3
common/rfb/VNCServerST.cxx View File

@@ -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;

Loading…
Cancel
Save