diff options
author | Maciej Makowski <maciejm.github@cfiet.net> | 2019-11-16 21:11:56 +0000 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2019-11-16 22:11:56 +0100 |
commit | 48861e463311145a653350688dc4bad83a528d91 (patch) | |
tree | 6d384990dde03d27eb83a89852e75aa275b9db0e /alacritty_terminal/src/event_loop.rs | |
parent | d741d3817debe9fdd4030bede3e4c8ca84ad078a (diff) | |
download | alacritty-48861e463311145a653350688dc4bad83a528d91.tar.gz alacritty-48861e463311145a653350688dc4bad83a528d91.zip |
Fix WinPTY freeze on termination
Fixes #2889.
Diffstat (limited to 'alacritty_terminal/src/event_loop.rs')
-rw-r--r-- | alacritty_terminal/src/event_loop.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index 3e762840..00f77c9f 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -250,8 +250,10 @@ where } } - // Queue terminal redraw - self.event_proxy.send_event(Event::Wakeup); + if processed > 0 { + // Queue terminal redraw + self.event_proxy.send_event(Event::Wakeup); + } Ok(()) } @@ -327,7 +329,6 @@ where } }, - #[cfg(unix)] token if token == self.pty.child_event_token() => { if let Some(tty::ChildEvent::Exited) = self.pty.next_child_event() { if !self.hold { |