wip: fix for mouse capture bug
This commit is contained in:
@@ -134,6 +134,11 @@ impl InputHandler {
|
||||
.lock()
|
||||
.status_contains(&[Status::Error, Status::Init]);
|
||||
if error_init || self.docker_sender.send(DockerMessage::Quit).await.is_err() {
|
||||
// This is a fix for a weird bug on Linux + WSL which will output mouse movement to the stdout
|
||||
|
||||
std::thread::spawn(||{
|
||||
execute!(std::io::stdout(), DisableMouseCapture).unwrap_or(());
|
||||
});
|
||||
self.is_running.store(false, Ordering::SeqCst);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user