]> source.dussan.org Git - tigervnc.git/commit
More carefully release mouse buttons on close
authorPierre Ossman <ossman@cendio.se>
Tue, 24 Sep 2024 07:03:53 +0000 (09:03 +0200)
committerPierre Ossman <ossman@cendio.se>
Tue, 24 Sep 2024 07:03:53 +0000 (09:03 +0200)
commit704f9724d8af58314c4fafc8930666bb2be46722
treed24b1f29e4661e29a945a3809e4aae09e1179f7a
parent43ce674dfbd2576fe5b382ad9f87e5beebc72812
More carefully release mouse buttons on close

Only the client that currently has buttons pressed should actually send
a release event as the client might not be currently in control of the
pointer state. This is most clearly seen in a client that hasn't event
authenticated properly yet.

Approximate this from the server by using the last known server cursor
position. It should hopefully not differ much from the last client
provided position.

Follow-up to 986280b382d57ef4f68d2d4afb13b26772e5acb0.
common/rfb/VNCSConnectionST.cxx
common/rfb/VNCServerST.cxx