Skip to content

Commit

Permalink
fix: remote cannot work
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 17, 2024
1 parent 95ccf0b commit 42cd4b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/remotedesktop/remote_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn remote_loop(receiver: Receiver<KeyOrPointerRequest>) -> 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 {
Expand All @@ -109,6 +109,7 @@ pub fn remote_loop(receiver: Receiver<KeyOrPointerRequest>) -> Result<(), KeyPoi
}
KeyOrPointerRequest::Exit => break,
}
event_queue.roundtrip(&mut data).ok();
}

Ok(())
Expand Down

0 comments on commit 42cd4b9

Please sign in to comment.