From 681fd736c96525b822abd65dec1694a8622ed310 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 19 Jun 2023 19:42:02 +0800 Subject: [PATCH] win, clipboard debug Signed-off-by: fufesou --- src/ui_cm_interface.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ui_cm_interface.rs b/src/ui_cm_interface.rs index 485ce3750..a0c10a77e 100644 --- a/src/ui_cm_interface.rs +++ b/src/ui_cm_interface.rs @@ -326,6 +326,17 @@ impl IpcTaskRunner { (_tx_clip, rx_clip) = unbounded_channel::(); } + #[cfg(windows)] + { + if ContextSend::is_server_enabled() { + allow_err!( + self.stream + .send(&Data::ClipboardFile(clipboard::ClipboardFile::MonitorReady)) + .await + ); + } + } + self.running = false; loop { tokio::select! {