aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDavid Hewitt <1939362+davidhewitt@users.noreply.github.com>2018-12-28 16:01:58 +0000
committerChristian Duerr <chrisduerr@users.noreply.github.com>2018-12-28 16:01:58 +0000
commitf1bc6802e1d0d03feaa43e61c2bf465795a96da9 (patch)
treed2b993eb020631ca1de14b47eb0d9213ee37dd90 /src/main.rs
parentec6f756946c998d327316d370b381003e51d3a70 (diff)
downloadalacritty-f1bc6802e1d0d03feaa43e61c2bf465795a96da9.tar.gz
alacritty-f1bc6802e1d0d03feaa43e61c2bf465795a96da9.zip
Add support for Windows ConPTY APIv0.2.4-conpty
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 2ce43fe1..ca8da5af 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -160,9 +160,9 @@ fn run(
// and we need to be able to resize the PTY from the main thread while the IO
// thread owns the EventedRW object.
#[cfg(windows)]
- let resize_handle = unsafe { &mut *pty.winpty.get() };
+ let mut resize_handle = pty.resize_handle();
#[cfg(not(windows))]
- let resize_handle = &mut pty.fd.as_raw_fd();
+ let mut resize_handle = pty.fd.as_raw_fd();
// Create the pseudoterminal I/O loop
//
@@ -239,7 +239,7 @@ fn run(
//
// The second argument is a list of types that want to be notified
// of display size changes.
- display.handle_resize(&mut terminal_lock, &config, &mut [resize_handle, &mut processor]);
+ display.handle_resize(&mut terminal_lock, &config, &mut [&mut resize_handle, &mut processor]);
drop(terminal_lock);