mirror of
https://github.com/rustdesk/qemu-display.git
synced 2025-07-02 15:56:33 +00:00
vnc: don't abort on mouse position error
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
5b07ebc44a
commit
939e632931
@ -126,10 +126,13 @@ impl Client {
|
|||||||
for b in self.last_buttons.difference(&buttons) {
|
for b in self.last_buttons.difference(&buttons) {
|
||||||
inner.console.mouse.release(*b)?;
|
inner.console.mouse.release(*b)?;
|
||||||
}
|
}
|
||||||
inner
|
if let Err(err) = inner
|
||||||
.console
|
.console
|
||||||
.mouse
|
.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;
|
self.last_buttons = buttons;
|
||||||
}
|
}
|
||||||
VncEvent::SetPixelFormat(p) => {
|
VncEvent::SetPixelFormat(p) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user