vnc: move check into vnc_cursor_define
commitb3c2de9cd5bc0023901e7a4d568dfc5152b6cc4a
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jan 2021 13:41:18 +0000 (12 14:41 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:22:43 +0000 (15 11:22 +0100)
tree6da8fe3d20bc2c434f27313f3fef0dd70ba6a352
parent5f8679fe46d78acfa5fc43a3fd6b3fe95525d9bd
vnc: move check into vnc_cursor_define

Move the check whenever a cursor exists into the vnc_cursor_define()
function so callers don't have to do it.

Suggested-by: Marc-André Lureau <marcandre.lureau@redhat.com>
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>
Message-id: 20210112134120.2031837-2-kraxel@redhat.com
ui/vnc.c