vnc: don't abort on mouse position error

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2021-03-09 15:51:05 +04:00
parent 5b07ebc44a
commit 939e632931

View File

@ -126,10 +126,13 @@ impl Client {
for b in self.last_buttons.difference(&buttons) {
inner.console.mouse.release(*b)?;
}
inner
if let Err(err) = inner
.console
.mouse
.set_abs_position(x_position as _, y_position as _)?;
.set_abs_position(x_position as _, y_position as _)
{
eprintln!("Error setting mouse position: {}", err);
}
self.last_buttons = buttons;
}
VncEvent::SetPixelFormat(p) => {