From 08a122574880d299181c59bec186c0f9e8bef77c Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Sat, 14 Dec 2019 21:32:24 +0000 Subject: Send PTY resize messages through event loop This allows us to clean up the Arcs on windows, as well as tidy up the code on unix a little too. Fixes #3086. --- alacritty/src/event.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'alacritty/src/event.rs') diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 4cfc2152..4b1fe892 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -308,20 +308,18 @@ pub struct Processor { suppress_chars: bool, modifiers: ModifiersState, config: Config, - pty_resize_handle: Box, message_buffer: MessageBuffer, display: Display, font_size: Size, } -impl Processor { +impl Processor { /// Create a new event processor /// /// Takes a writer which is expected to be hooked up to the write end of a /// pty. pub fn new( notifier: N, - pty_resize_handle: Box, message_buffer: MessageBuffer, config: Config, display: Display, @@ -334,7 +332,6 @@ impl Processor { modifiers: Default::default(), font_size: config.font.size, config, - pty_resize_handle, message_buffer, display, } @@ -405,7 +402,7 @@ impl Processor { if !display_update_pending.is_empty() { self.display.handle_update( &mut terminal, - self.pty_resize_handle.as_mut(), + &mut self.notifier, &self.message_buffer, &self.config, display_update_pending, -- cgit