diff options
author | ns <portification@gmail.com> | 2017-05-28 05:08:28 +0200 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-05-27 20:08:28 -0700 |
commit | b9ec141c927b333bfea5d8a285deedd164181dd8 (patch) | |
tree | 4e585aee9265f8da68d039ab33d396882455be3d /src/main.rs | |
parent | 0e4edc5420ee7e1d240980686ff0244d2627993d (diff) | |
download | alacritty-b9ec141c927b333bfea5d8a285deedd164181dd8.tar.gz alacritty-b9ec141c927b333bfea5d8a285deedd164181dd8.zip |
Find and set $WINDOWID to X11 window ID (#586)
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 7c377f2b..b7db4dec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -98,12 +98,15 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> { let terminal = Term::new(&config, display.size().to_owned()); let terminal = Arc::new(FairMutex::new(terminal)); + // Find the window ID for setting $WINDOWID + let window_id = display.get_window_id(); + // Create the pty // // The pty forks a process to run the shell on the slave side of the // pseudoterminal. A file descriptor for the master side is retained for // reading/writing to the shell. - let mut pty = tty::new(&config, &options, display.size()); + let mut pty = tty::new(&config, &options, display.size(), window_id); // Create the pseudoterminal I/O loop // |