Ver código fonte

Break long lines in new pointerEvent logic

pull/1722/head
Samuel Mannehed 3 meses atrás
pai
commit
6edbe66218
1 arquivos alterados com 4 adições e 3 exclusões
  1. 4
    3
      common/rfb/VNCServerST.cxx

+ 4
- 3
common/rfb/VNCServerST.cxx Ver arquivo

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

Carregando…
Cancelar
Salvar