From 42cd4b9c4950577d3d53d6d7345e9c4c53f97691 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Thu, 17 Oct 2024 21:35:45 +0900 Subject: [PATCH] fix: remote cannot work --- src/remotedesktop/remote_thread.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remotedesktop/remote_thread.rs b/src/remotedesktop/remote_thread.rs index 7ffbe98..a9e35f2 100644 --- a/src/remotedesktop/remote_thread.rs +++ b/src/remotedesktop/remote_thread.rs @@ -83,7 +83,7 @@ pub fn remote_loop(receiver: Receiver) -> Result<(), KeyPoi // At this point everything is ready, and we just need to wait to receive the events // from the wl_registry, our callback will print the advertized globals. - let data = AppData::init(&mut event_queue)?; + let mut data = AppData::init(&mut event_queue)?; while let Ok(message) = receiver.recv() { match message { @@ -109,6 +109,7 @@ pub fn remote_loop(receiver: Receiver) -> Result<(), KeyPoi } KeyOrPointerRequest::Exit => break, } + event_queue.roundtrip(&mut data).ok(); } Ok(())