From ac2660a03ae5a7951253a46797fbceec718f3183 Mon Sep 17 00:00:00 2001 From: Zhennan Tu Date: Sat, 27 Apr 2024 15:58:17 +0800 Subject: [PATCH] Make sure mouse mode after StartTransmissionAck --- lanthing/src/client/client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lanthing/src/client/client.cpp b/lanthing/src/client/client.cpp index 3d8a038..99cf014 100644 --- a/lanthing/src/client/client.cpp +++ b/lanthing/src/client/client.cpp @@ -958,6 +958,9 @@ void Client::onStartTransmissionAck(const std::shared_ptr(_msg); if (msg->err_code() == ltproto::ErrorCode::Success) { LOG(INFO) << "Received StartTransmissionAck with success"; + auto switch_mouse = std::make_shared(); + switch_mouse->set_absolute(absolute_mouse_); + sendMessageToHost(ltproto::id(switch_mouse), switch_mouse, true); } else { LOG(INFO) << "StartTransmission failed with " << ltproto::ErrorCode_Name(msg->err_code());