vnc: add alpha cursor support
commit074a86d0b3e8a9352dcca32b46917e1b3ab23ea4
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Dec 2020 11:57:34 +0000 (8 12:57 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 11 Dec 2020 07:06:40 +0000 (11 08:06 +0100)
tree22480fee922b49de7dc8a31056c8857636bfcf24
parenta7d83e43597964047e1d2f326c249082e7d9b99f
vnc: add alpha cursor support

There is a new vnc extension for cursors with an alpha channel.  Use
it if supported by the vnc client, prefer it over the "rich cursor"
extension which supports only a bitmask for transparency.

This is a visible improvement especially on modern desktops which
actually use the alpha channel when defining cursors.

https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#cursor-with-alpha-pseudo-encoding

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20201208115737.18581-7-kraxel@redhat.com
ui/vnc.c
ui/vnc.h