mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-29 08:01:03 +03:00
Refact/android input changed notify clients (#8494)
* refact: android, input control changed, notify clients Signed-off-by: fufesou <linlong1266@gmail.com> * fix: android init input perm Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -400,6 +400,9 @@ impl Connection {
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
start_channel(rx_to_cm, tx_from_cm);
|
||||
#[cfg(target_os = "android")]
|
||||
conn.send_permission(Permission::Keyboard, conn.keyboard).await;
|
||||
#[cfg(not(target_os = "android"))]
|
||||
if !conn.keyboard {
|
||||
conn.send_permission(Permission::Keyboard, false).await;
|
||||
}
|
||||
@@ -457,6 +460,11 @@ impl Connection {
|
||||
conn.on_close("connection manager", true).await;
|
||||
break;
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
ipc::Data::InputControl(v) => {
|
||||
conn.keyboard = v;
|
||||
conn.send_permission(Permission::Keyboard, v).await;
|
||||
}
|
||||
ipc::Data::CmErr(e) => {
|
||||
if e != "expected" {
|
||||
// cm closed before connection
|
||||
|
||||
Reference in New Issue
Block a user