mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
wayland: fix enigo crash & mid commit
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -190,7 +190,8 @@ pub async fn set_uinput() -> ResultType<()> {
|
||||
let mouse = super::uinput::client::UInputMouse::new().await?;
|
||||
log::info!("UInput mouse created");
|
||||
|
||||
let mut en = ENIGO.lock().unwrap();
|
||||
let xxx = ENIGO.lock();
|
||||
let mut en = xxx.unwrap();
|
||||
en.set_uinput_keyboard(Some(Box::new(keyboard)));
|
||||
en.set_uinput_mouse(Some(Box::new(mouse)));
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user