wayland better uinput control

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-11-30 10:28:03 +08:00
parent ee29db888a
commit 60073e037e
3 changed files with 34 additions and 31 deletions

View File

@@ -174,14 +174,13 @@ pub(super) async fn check_init() -> ResultType<()> {
if minx != maxx && miny != maxy {
log::info!(
"send uinput resolution: ({}, {}), ({}, {})",
"update mouse resolution: ({}, {}), ({}, {})",
minx,
maxx,
miny,
maxy
);
allow_err!(input_service::set_uinput_resolution(minx, maxx, miny, maxy).await);
allow_err!(input_service::set_uinput().await);
allow_err!(input_service::update_mouse_resolution(minx, maxx, miny, maxy).await);
}
}
Ok(())