diff --git a/src/device_controller/mouse/windows/mouse_controller.cpp b/src/device_controller/mouse/windows/mouse_controller.cpp index 136b087..421fb43 100644 --- a/src/device_controller/mouse/windows/mouse_controller.cpp +++ b/src/device_controller/mouse/windows/mouse_controller.cpp @@ -62,7 +62,6 @@ int MouseController::SendMouseCommand(RemoteAction remote_action, ip.mi.time = 0; SetCursorPos(ip.mi.dx, ip.mi.dy); - LOG_ERROR("mouse {}x{}", ip.mi.dx, ip.mi.dy); if (ip.mi.dwFlags != MOUSEEVENTF_MOVE) { SendInput(1, &ip, sizeof(INPUT)); diff --git a/src/single_window/render_callback_func.cpp b/src/single_window/render_callback_func.cpp index 24a1903..a1e5afe 100644 --- a/src/single_window/render_callback_func.cpp +++ b/src/single_window/render_callback_func.cpp @@ -269,7 +269,8 @@ void Render::OnReceiveDataBufferCb(const char *data, size_t size, auto props = render->client_properties_.find(remote_id)->second; RemoteAction host_info; if (DeserializeRemoteAction(data, size, host_info)) { - if (ControlType::host_infomation == host_info.type) { + if (ControlType::host_infomation == host_info.type && + props->remote_host_name_.empty()) { props->remote_host_name_ = std::string(host_info.i.host_name, host_info.i.host_name_size); LOG_INFO("Remote hostname: [{}]", props->remote_host_name_); diff --git a/thirdparty/projectx b/thirdparty/projectx index 20c6ee1..9ee3bec 160000 --- a/thirdparty/projectx +++ b/thirdparty/projectx @@ -1 +1 @@ -Subproject commit 20c6ee11f60a51249506ade144394dc11469c719 +Subproject commit 9ee3bec9df9858012f3dfd8004b29ccec83ab656